FreeCameraMouseInput

Manage the mouse inputs to control the movement of a free camera.

see

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

Hierarchy

  • FreeCameraMouseInput

Implements

Index

Constructors

constructor

Find examples in Playground

Properties

angularSensibility

Find examples in Playground
angularSensibility: number

Defines the pointer angular sensibility along the X and Y axis or how fast is the camera rotating.

buttons

Find examples in Playground
buttons: number[]

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

camera

Find examples in Playground
camera: FreeCamera

Defines the camera the input is attached to.

touchEnabled

Find examples in Playground
touchEnabled: boolean

Define if touch is enabled in the mouse input

Methods

attachControl

Find examples in Playground
  • attachControl(element: HTMLElement, noPreventDefault?: boolean): void

detachControl

Find examples in Playground
  • detachControl(element: Nullable<HTMLElement>): void
  • Detach the current controls from the specified dom element.

    Parameters

    • element: Nullable<HTMLElement>

      Defines the element to stop listening the inputs from

    Returns void

getClassName

Find examples in Playground
  • getClassName(): string

getSimpleName

Find examples in Playground
  • getSimpleName(): string
  • Get the friendly name associated with the input class.

    Returns string

    the input friendly name

Generated using TypeDoc