Constructor
new InputManager(Parent, condition)
Create a new input manager.
Parameters:
Name | Type | Description |
---|---|---|
Parent | EventHandler | | event handler (optional) |
condition | function | Function for checking whether events should run |
- Source
Members
keyboard
Get the keyboard input handler.
- Source
mouse
Get the mouse input handler.
- Source
Methods
destructor()
Handle removing listeners from document.
- Source