angry-pixel 1.1.9 → 1.1.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -55,6 +55,7 @@ export declare class GamepadData {
55
55
  get leftStickVertical(): number;
56
56
  get rightStickHorizontal(): number;
57
57
  get rightStickVertical(): number;
58
+ get anyButtonPressed(): boolean;
58
59
  vibrate(duration?: number, weakMagnitude?: number, strongMagnitude?: number, startDelay?: number): void;
59
60
  }
60
61
  export {};
@@ -1,6 +1,6 @@
1
1
  export declare class KeyboardController {
2
- private canvas;
3
- private keyPresses;
2
+ pressedKeys: string[];
3
+ private keyMap;
4
4
  constructor(canvas: HTMLCanvasElement);
5
5
  private eventHandler;
6
6
  isPressed(keyCode: string): boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "angry-pixel",
3
- "version": "1.1.9",
3
+ "version": "1.1.10",
4
4
  "description": "Lightweight 2D game engine made with TypeScript.",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",