Class ArcRotateCameraGamepadInput
Implements
Constructors
constructor
-
Returns ArcRotateCameraGamepadInput
Properties
camera
Defines the camera the input is attached to.
gamepad
Defines the gamepad the input is gathering event from.
gamepad Move Sensibility
Defines the gamepad move sensibility. This is the threshold from when moving starts to be accounted for for to prevent jittering.
gamepad Rotation Sensibility
Defines the gamepad rotation sensibility. This is the threshold from when rotation starts to be accounted for to prevent jittering.
Accessors
invert Y Axis
-
get invertYAxis(): boolean
Gets or sets a boolean indicating that Yaxis (for right stick) should be inverted
Returns boolean
-
set invertYAxis(value: boolean): void
Parameters
- value: boolean
Returns void
Methods
attach Control
-
Attach the input controls to a specific dom element to get the input from.
Returns void
check Inputs
-
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 Control
-
Detach the current controls from the specified dom element.
Returns void
get Class Name
-
Gets the class name of the current intput.
Returns string
the class name
get Simple Name
-
Get the friendly name associated with the input class.
Returns string
the input friendly name
Manage the gamepad inputs to control an arc rotate camera.
See
https://doc.babylonjs.com/features/featuresDeepDive/cameras/customizingCameraInputs