TouchGamepad.d.ts 483 B

12345678910111213141516171819
  1. export declare class TouchGamepad {
  2. private _enabled;
  3. private _upButtons;
  4. private _downButtons;
  5. private _pressedButtons;
  6. sticks: never[];
  7. buttons: never[];
  8. get enabled(): boolean;
  9. constructor();
  10. addButton(): void;
  11. addStick(): void;
  12. clear(): void;
  13. reset(): void;
  14. enable(): void;
  15. disable(): void;
  16. getButtonDown(index: number): boolean;
  17. getButtonPressed(index: number): boolean;
  18. getButtonUp(index: number): boolean;
  19. }