Class ArcRotateCameraKeyboardMoveInput
Implements
Constructors
constructor
-
Returns ArcRotateCameraKeyboardMoveInput
Properties
angular Speed
Rotation speed of the camera
camera
Defines the camera the input is attached to.
keys Down
Defines the list of key codes associated with the down action (decrease alpha)
keys Left
Defines the list of key codes associated with the left action (increase beta)
keys Reset
Defines the list of key codes associated with the reset action. Those keys reset the camera to its last stored state (with the method camera.storeState())
keys Right
Defines the list of key codes associated with the right action (decrease beta)
keys Up
Defines the list of key codes associated with the up action (increase alpha)
keys Zoom In
Defines the list of key codes associated with the zoom in action. Only used when CameraMovement is active — these keys always trigger zoom regardless of modifiers.
keys Zoom Out
Defines the list of key codes associated with the zoom out action. Only used when CameraMovement is active — these keys always trigger zoom regardless of modifiers.
panning Sensibility
Defines the panning sensibility of the inputs. (How fast is the camera panning)
zooming Sensibility
Defines the zooming sensibility of the inputs. (How fast is the camera zooming)
Accessors
use Alt To Zoom
-
get useAltToZoom(): boolean
Defines whether alt+arrows/wasd triggers zoom instead of rotation/pan. When disabled, alt+keyboard events are ignored by the zoom inputMap entry. Setting this updates the corresponding inputMap entry on the camera's movement system. If set before the camera is attached, the value is cached and applied during
attachControl.Returns boolean
-
set useAltToZoom(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.
Parameters
OptionalnoPreventDefault: booleanDefines whether event caught by the controls should call preventdefault() (https://developer.mozilla.org/en-US/docs/Web/API/Event/preventDefault)
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 input.
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 keyboard inputs to control the movement of an arc rotate camera.
See
https://doc.babylonjs.com/features/featuresDeepDive/cameras/customizingCameraInputs