API

Class FlyCameraMouseInput

Listen to mouse events to control the camera.

Implements

Index
activeButton: number = -1

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

angularSensibility: number = 1000.0

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

buttons: number[] = ...

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

buttonsPitch: number[] = ...

Assign buttons for Pitch control.

buttonsRoll: number[] = ...

Assign buttons for Roll control.

buttonsYaw: number[] = ...

Assign buttons for Yaw control.

camera: FlyCamera

Defines the camera the input is attached to.

touchEnabled: boolean

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