Skip to content

@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 ​

PropertyTypeDescriptionDefined in
gamepad?booleanRead gamepads. Default true.systems/InputSystem.ts:34
touch?boolean | TouchControlsConfigOn-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?TouchVisibilityWhen touch controls show. auto: while touch is the last input.systems/InputSystem.ts:42
actions?InputActionMapExtra or changed actions on top of DEFAULT_INPUT_ACTIONS.systems/InputSystem.ts:44