open source
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user