Options
All
  • Public
  • Public/Protected
  • All
Menu

Class FlyCameraMouseInput

Listen to mouse events to control the camera.

see

https://doc.babylonjs.com/how_to/customizing_camera_inputs

Hierarchy

  • FlyCameraMouseInput

Implements

Index

Constructors

constructor

Properties

activeButtonSearch playground for activeButton

activeButton: number

Detect if any button is being pressed while mouse is moved. -1 = Mouse locked. 0 = Left button. 1 = Middle Button. 2 = Right Button.

angularSensibilitySearch playground for angularSensibility

angularSensibility: number

Defines the pointer's angular sensibility, to control the camera rotation speed. Higher values reduce its sensitivity.

buttonsSearch playground for buttons

buttons: number[]

Defines the buttons associated with the input to handle camera rotation.

buttonsPitchSearch playground for buttonsPitch

buttonsPitch: number[]

Assign buttons for Pitch control.

buttonsRollSearch playground for buttonsRoll

buttonsRoll: number[]

Assign buttons for Roll control.

buttonsYawSearch playground for buttonsYaw

buttonsYaw: number[]

Assign buttons for Yaw control.

cameraSearch playground for camera

camera: FlyCamera

Defines the camera the input is attached to.

touchEnabledSearch playground for touchEnabled

touchEnabled: boolean

Defines if touch is enabled. (Default is true.)

Methods

attachControlSearch playground for attachControl

  • attachControl(noPreventDefault?: boolean): void
  • 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

detachControlSearch playground for detachControl

  • detachControl(): void
  • Detach the current controls from the specified dom element.

    Returns void

getClassNameSearch playground for getClassName

  • getClassName(): string
  • Gets the class name of the current input.

    Returns string

    the class name.

getSimpleNameSearch playground for getSimpleName

  • getSimpleName(): string
  • Get the friendly name associated with the input class.

    Returns string

    the input's friendly name.

Legend

  • Constructor
  • Property
  • Method
  • Property
  • Method
  • Inherited property
  • Inherited method
  • Static property
  • Static method