three-game-engine
Version:
Simple light-weight game engine using three.js, three-mesh-ui and rapier
16 lines (15 loc) • 533 B
TypeScript
import KeyboardHandler from "./KeyboardHandler";
import MouseHandler from "./MouseHandler";
import GamepadHandler from "./GamepadHandler";
import { InputOptions } from "../types";
declare class InputManager {
options: InputOptions;
keyboardHandler: KeyboardHandler;
mouseHandler: MouseHandler;
gamepadHandler: GamepadHandler;
constructor(canvas: HTMLCanvasElement, options?: InputOptions);
beforeRender(): void;
readVerticalAxis(): number;
readHorizontalAxis(): number;
}
export default InputManager;