Function: registerInputs()
registerInputs(
world,time,options?):InputManager
Defined in: input/register-inputs.ts:28
Creates an InputManager, registers it on a new entity in the world, and adds the update and reset systems that drive it each frame.
Parameters
world
The world to register the input entity and systems with.
time
The Time instance used to advance the InputManager each frame.
options?
Actions to register with the InputManager up front.
axis1dActions?
1D axis actions to add to the InputManager.
axis2dActions?
2D axis actions to add to the InputManager.
holdActions?
Hold actions to add to the InputManager.
triggerActions?
Trigger actions to add to the InputManager.
Returns
The InputManager, for creating input sources and bindings against.