GamepadController.d.ts 421 B

1234567891011121314
  1. export declare class GamepadController {
  2. private _upButtons;
  3. private _downButtons;
  4. private _pressedButtons;
  5. private _gamepad;
  6. deadZone: number;
  7. get gamepad(): Gamepad;
  8. constructor(gamepad: Gamepad);
  9. private update;
  10. getAxis(index: number): number;
  11. getButton(index: number): number;
  12. getButtonDown(index: number): boolean;
  13. getButtonUp(index: number): boolean;
  14. }