Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • InputManager

Index

Constructors

Properties

_keys: Map<number, boolean> = ...
_mouseLeft: boolean = false
_mouseRight: boolean = false
_mouseX: number
_mouseY: number
_previousMouseX: number
_previousMouseY: number

Methods

  • initialize(): void
  • isKeyDown(key: Keys): boolean
  • onKeyDown(ev: KeyboardEvent): boolean
  • onKeyUp(ev: KeyboardEvent): boolean
  • onMouseDown(ev: MouseEvent): void
  • onMouseMove(ev: MouseEvent): void
  • onMouseUp(ev: MouseEvent): void

Generated using TypeDoc