@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 ​
| Property | Type | Description | Defined in |
|---|---|---|---|
device | InputDevice | - | systems/InputSystem.ts:49 |
family | GamepadFamily | null | The pad family when device is gamepad. | systems/InputSystem.ts:51 |
label | string | "Space", "Left Click", "A", "Cross", "Jump". | systems/InputSystem.ts:53 |
symbol | string | The shortest form: "✕" on PlayStation, otherwise the label. | systems/InputSystem.ts:55 |
binding | string | null | The binding it came from, e.g. pad:south. Null when nothing is bound for this device. | systems/InputSystem.ts:57 |

