@relu-interactives/spatial-ecs
@relu-interactives/spatial-ecs / index / InputSystemOptions
Type Alias: InputSystemOptions ​
ts
type InputSystemOptions = {
gamepad?: boolean;
touch?: boolean | TouchControlsConfig;
touchVisibility?: TouchVisibility;
actions?: InputActionMap;
};Defined in: systems/InputSystem.ts:32
Options for InputSystem. Everything is optional; new InputSystem() still works.
Properties ​
| Property | Type | Description | Defined in |
|---|---|---|---|
gamepad? | boolean | Read gamepads. Default true. | systems/InputSystem.ts:34 |
touch? | boolean | TouchControlsConfig | On-screen controls for touch screens. true uses the defaults (stick, look area, a Jump button, pause); an object sets the layout; false (the default) draws none. | systems/InputSystem.ts:40 |
touchVisibility? | TouchVisibility | When touch controls show. auto: while touch is the last input. | systems/InputSystem.ts:42 |
actions? | InputActionMap | Extra or changed actions on top of DEFAULT_INPUT_ACTIONS. | systems/InputSystem.ts:44 |

