Class FreeCameraMouseInput
Hierarchy
- FreeCameraMouseInput
Implements
Index
Constructors
Properties
Methods
Constructors
constructor
-
Manage the mouse inputs to control the movement of a free camera.
Parameters
-
Optional touchEnabled: boolean
Defines if touch is enabled or not
Returns FreeCameraMouseInput
-
Properties
angular SensibilitySearch playground for angularSensibility
Defines the pointer angular sensibility along the X and Y axis or how fast is the camera rotating.
buttonsSearch playground for buttons
Defines the buttons associated with the input to handle camera move.
cameraSearch playground for camera
Defines the camera the input is attached to.
on Pointer Moved ObservableSearch playground for onPointerMovedObservable
Observable for when a pointer move event occurs containing the move offset
touch EnabledSearch playground for touchEnabled
Define if touch is enabled in the mouse input
Methods
attach ControlSearch playground for attachControl
-
Attach the input controls to a specific dom element to get the input from.
Parameters
-
Optional noPreventDefault: boolean
Defines whether event caught by the controls should call preventdefault() (https://developer.mozilla.org/en-US/docs/Web/API/Event/preventDefault)
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 mouse inputs to control the movement of a free camera.
https://doc.babylonjs.com/how_to/customizing_camera_inputs