mirror of
https://github.com/nvms/prsm.git
synced 2025-12-16 08:00:53 +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
|
# 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",
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user