Options
All
  • Public
  • Public/Protected
  • All
Menu

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

see

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

Hierarchy

  • FreeCameraMouseInput

Implements

Index

Constructors

Properties

angularSensibility: number

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

buttons: number[]

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

camera: FreeCamera

Defines the camera the input is attached to.

onPointerMovedObservable: Observable<{ offsetX: number; offsetY: number }>

Observable for when a pointer move event occurs containing the move offset

touchEnabled: boolean

Define if touch is enabled in the mouse input

Methods

  • attachControl(noPreventDefault?: boolean): void
  • detachControl(): void
  • Detach the current controls from the specified dom element.

    Returns void

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

    Returns string

    the class name

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

    Returns string

    the input friendly name

  • onContextMenu(evt: PointerEvent): void
  • Called on JS contextmenu event. Override this method to provide functionality.

    Parameters

    • evt: PointerEvent

    Returns void

Legend

  • Constructor
  • Property
  • Method
  • Property
  • Method
  • Inherited constructor
  • Static method

Settings

Theme