Input

The Input controller is a very simple singleton that provides references to the input object instances.

You can use these to handle user input on your project. No need to go around creating listeners everywhere. Any other input sources being maintained by the engine in the future will be added here.

.mouse

mouse: Mouse

The Mouse instance being used to handle mouse events.

.keyboard

keyboard: Keyboard

The Keyboard instance being used to handle keyboard events.

.touch

touch: Touch

The Touch instance being used to handle touch events.