Interface Gamepad
interface Gamepad {
axes: readonly number[];
buttons: readonly GamepadButton[];
connected: boolean;
hapticActuators: readonly GamepadHapticActuator[];
id: string;
index: number;
mapping: GamepadMappingType;
timestamp: number;
vibrationActuator: GamepadHapticActuator;
}
axes: readonly number[];
buttons: readonly GamepadButton[];
connected: boolean;
hapticActuators: readonly GamepadHapticActuator[];
id: string;
index: number;
mapping: GamepadMappingType;
timestamp: number;
vibrationActuator: GamepadHapticActuator;
}
MDN Reference