Gamepad
This Gamepad API interface defines an individual gamepad or other controller, allowing access to information such as button presses, axis positions, and id. Available only in secure contexts.
interface Gamepad {
readonly axes: ReadonlyArray<number>;
readonly buttons: ReadonlyArray<GamepadButton>;
readonly connected: boolean;
readonly hapticActuators: ReadonlyArray<GamepadHapticActuator>;
readonly id: string;
readonly index: number;
readonly mapping: GamepadMappingType;
readonly timestamp: DOMHighResTimeStamp;
}§Properties
§
readonly buttons: ReadonlyArray<GamepadButton>
[src]§
readonly hapticActuators: ReadonlyArray<GamepadHapticActuator>
[src]§
readonly mapping: GamepadMappingType
[src]§
readonly timestamp: DOMHighResTimeStamp
[src]