Class FreeCameraGamepadInput
Hierarchy
- FreeCameraGamepadInput
Implements
Index
Properties
Accessors
Methods
Properties
cameraSearch playground for camera
Define the camera the input is attached to.
gamepadSearch playground for gamepad
Define the Gamepad controlling the input
gamepad Angular SensibilitySearch playground for gamepadAngularSensibility
Defines the gamepad rotation sensiblity. This is the threshold from when rotation starts to be accounted for to prevent jittering.
gamepad Move SensibilitySearch playground for gamepadMoveSensibility
Defines the gamepad move sensiblity. This is the threshold from when moving starts to be accounted for for to prevent jittering.
Accessors
invertYAxis
-
Gets or sets a boolean indicating that Yaxis (for right stick) should be inverted
Returns boolean
-
Gets or sets a boolean indicating that Yaxis (for right stick) should be inverted
Parameters
-
value: boolean
Returns any
-
Methods
attach ControlSearch playground for attachControl
-
Attach the input controls to a specific dom element to get the input from.
Returns void
check InputsSearch playground for checkInputs
-
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.
Returns void
detach ControlSearch playground for detachControl
-
Detach the current controls from the specified dom element.
Returns void
get Class NameSearch playground for getClassName
-
Gets the class name of the current intput.
Returns string
the class name
get Simple NameSearch playground for getSimpleName
-
Get the friendly name associated with the input class.
Returns string
the input friendly name
Manage the gamepad inputs to control a free camera.
https://doc.babylonjs.com/how_to/customizing_camera_inputs