mirror of
https://github.com/nvms/prsm.git
synced 2025-12-16 00:00:52 +00:00
README
This commit is contained in:
parent
4f858a5b96
commit
3e6ee88ab7
@ -30,6 +30,7 @@ An ECS framework (and robust input system) for the web.
|
||||
# Comprehensive sample
|
||||
|
||||
```typescript
|
||||
import merge from "lodash/merge";
|
||||
import { createWorld, type WorldState } from "@prsm/ngn";
|
||||
import {
|
||||
inputSystem,
|
||||
@ -41,7 +42,7 @@ import {
|
||||
|
||||
// Create a mapping with unique button/key names.
|
||||
const MyMapping = (): GamepadMapping => {
|
||||
return Object.assign(SCUFVantage2(), {
|
||||
return merge(SCUFVantage2(), {
|
||||
axes: {
|
||||
2: "LookHorizontal",
|
||||
3: "LookVertical",
|
||||
|
||||
Loading…
Reference in New Issue
Block a user