2d-physics-engine
Version:
A lightweight, flexible 2D physics engine with ECS architecture, built with TypeScript
19 lines • 598 B
TypeScript
import { Vector2 } from '../math/Vector2';
export declare class InputManager {
private keyStates;
private mousePosition;
private mouseButtons;
constructor();
update(): void;
isKeyPressed(key: string): boolean;
isKeyJustPressed(key: string): boolean;
isMouseButtonPressed(button: number): boolean;
isMouseButtonJustPressed(button: number): boolean;
getMousePosition(): Vector2;
private handleKeyDown;
private handleKeyUp;
private handleMouseMove;
private handleMouseDown;
private handleMouseUp;
}
//# sourceMappingURL=InputManager.d.ts.map