Skip to content

1681-engine / index / PadState

Interface: PadState ​

Defined in: src/input/Actions.ts:38

What the actions read from a gamepad; navigator.getGamepads() entries satisfy it.

Extends ​

Properties ​

axes ​

ts
readonly axes: readonly number[];

Defined in: src/input/Actions.ts:40


buttons ​

ts
readonly buttons: readonly object[];

Defined in: src/input/Actions.ts:39


vibrationActuator? ​

ts
readonly optional vibrationActuator?: 
  | {
  playEffect?: Promise<unknown>;
  reset?: Promise<unknown>;
}
  | null;

Defined in: src/input/rumble.ts:20

Inherited from ​

RumblePad.vibrationActuator

Released under the MIT License.