Class FlyCameraMouseInput
Hierarchy
- FlyCameraMouseInput
Implements
Index
Constructors
Properties
Methods
Constructors
constructor
-
Listen to mouse events to control the camera.
Parameters
-
Optional touchEnabled: boolean
Define if touch is enabled. (Default is true.)
Returns FlyCameraMouseInput
-
Properties
active ButtonSearch playground for activeButton
Detect if any button is being pressed while mouse is moved. -1 = Mouse locked. 0 = Left button. 1 = Middle Button. 2 = Right Button.
angular SensibilitySearch playground for angularSensibility
Defines the pointer's angular sensibility, to control the camera rotation speed. Higher values reduce its sensitivity.
buttonsSearch playground for buttons
Defines the buttons associated with the input to handle camera rotation.
buttons PitchSearch playground for buttonsPitch
Assign buttons for Pitch control.
buttons RollSearch playground for buttonsRoll
Assign buttons for Roll control.
buttons YawSearch playground for buttonsYaw
Assign buttons for Yaw control.
cameraSearch playground for camera
Defines the camera the input is attached to.
touch EnabledSearch playground for touchEnabled
Defines if touch is enabled. (Default is true.)
Methods
attach ControlSearch playground for attachControl
-
Attach the mouse control to the HTML DOM element.
Parameters
-
Optional noPreventDefault: boolean
Defines whether events caught by the controls should call 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 input.
Returns string
the class name.
get Simple NameSearch playground for getSimpleName
-
Get the friendly name associated with the input class.
Returns string
the input's friendly name.
Listen to mouse events to control the camera.
https://doc.babylonjs.com/how_to/customizing_camera_inputs