This commit is contained in:
nvms 2025-03-27 20:41:52 -04:00
parent 4f858a5b96
commit 3e6ee88ab7

View File

@ -30,6 +30,7 @@ An ECS framework (and robust input system) for the web.
# Comprehensive sample # Comprehensive sample
```typescript ```typescript
import merge from "lodash/merge";
import { createWorld, type WorldState } from "@prsm/ngn"; import { createWorld, type WorldState } from "@prsm/ngn";
import { import {
inputSystem, inputSystem,
@ -41,7 +42,7 @@ import {
// Create a mapping with unique button/key names. // Create a mapping with unique button/key names.
const MyMapping = (): GamepadMapping => { const MyMapping = (): GamepadMapping => {
return Object.assign(SCUFVantage2(), { return merge(SCUFVantage2(), {
axes: { axes: {
2: "LookHorizontal", 2: "LookHorizontal",
3: "LookVertical", 3: "LookVertical",