InputManager

Root input manager. For use globally and in actor components.

Constructor

new InputManager(Parent, condition)

Create a new input manager.
Parameters:
NameTypeDescription
ParentEventHandler | nullevent handler (optional)
conditionfunctionFunction for checking whether events should run

Members

keyboard

Get the keyboard input handler.

mouse

Get the mouse input handler.

Methods

destructor()

Handle removing listeners from document.