Skip to content

@relu-interactives/spatial-ecs


@relu-interactives/spatial-ecs / index / InputPrompt

Type Alias: InputPrompt ​

ts
type InputPrompt = {
  device: InputDevice;
  family: GamepadFamily | null;
  label: string;
  symbol: string;
  binding: string | null;
};

Defined in: systems/InputSystem.ts:48

How an action reads on screen for the device in use.

Properties ​

PropertyTypeDescriptionDefined in
deviceInputDevice-systems/InputSystem.ts:49
familyGamepadFamily | nullThe pad family when device is gamepad.systems/InputSystem.ts:51
labelstring"Space", "Left Click", "A", "Cross", "Jump".systems/InputSystem.ts:53
symbolstringThe shortest form: "✕" on PlayStation, otherwise the label.systems/InputSystem.ts:55
bindingstring | nullThe binding it came from, e.g. pad:south. Null when nothing is bound for this device.systems/InputSystem.ts:57