Files
LayaNative2.0/Conch/source/domsupport/GamePad.ts
T
2020-11-11 16:17:13 +08:00

21 lines
306 B
TypeScript

interface GamepadButton {
pressed: boolean;
value: number;
}
class Gamepad{
axes: number[];
buttons: GamepadButton[];
connected: boolean;
id: string;
index: number;
mapping: string;
timestamp: number;
}
class GamepadEvent extends Event {
gamepad: Gamepad;
}