import { Vector } from '../physics/vector'; import { Engine } from '../render'; export declare class Input { mouse: MouseInput; keyboard: KeyBoardInput; constructor(engine: Engine); } export declare class MouseInput { down?: boolean; up?: boolean; move?: boolean; click?: boolean; position: Vector; constructor(engine: Engine); /** * The position on DOM and position on canvas may differ because of canvas's position * on DOM and scrolled browser view. So we are basically getting the exact position of * the clicked point on the canvas and not the DOM. I hope you got it 😄 * @param {Vector} mousePointOnScreen Position detected by DOM * @param {Engine} engine The Engine * @returns {Vector} Final Position on Canvas */ getMousePositionOnCanvas(mousePointOnScreen: Vector, engine: Engine): Vector; } export declare class KeyBoardInput { currentDownKey: string; currentUpKey: string; currentPressedKey: string; shiftKey?: boolean; altKey?: boolean; ctrlKey?: boolean; engine: Engine; constructor(engine: Engine); getKey(key: string): string; }