Manage the gamepad inputs to control a free camera.
Define the camera the input is attached to.
Define the Gamepad controlling the input
Defines the gamepad rotation sensiblity. This is the threshold from when rotation starts to be accounted for to prevent jittering.
Defines the gamepad move sensiblity. This is the threshold from when moving starts to be accounted for for to prevent jittering.
Gets or sets a boolean indicating that Yaxis (for right stick) should be inverted
Attach the input controls to a specific dom element to get the input from.
Defines the element the controls should be listened from
Defines whether event caught by the controls should call preventdefault() (https://developer.mozilla.org/en-US/docs/Web/API/Event/preventDefault)
Update the current camera state depending on the inputs that have been used this frame. This is a dynamically created lambda to avoid the performance penalty of looping for inputs in the render loop.
Detach the current controls from the specified dom element.
Defines the element to stop listening the inputs from
Gets the class name of the current intput.
the class name
Get the friendly name associated with the input class.
the input friendly name
Generated using TypeDoc