Options
All
  • Public
  • Public/Protected
  • All
Menu

Manage the keyboard inputs to control the movement of an arc rotate camera.

see

https://doc.babylonjs.com/features/featuresDeepDive/cameras/customizingCameraInputs

Hierarchy

  • ArcRotateCameraKeyboardMoveInput

Implements

Index

Constructors

Properties

angularSpeed: number

Rotation speed of the camera

Defines the camera the input is attached to.

keysDown: number[]

Defines the list of key codes associated with the down action (decrease alpha)

keysLeft: number[]

Defines the list of key codes associated with the left action (increase beta)

keysReset: number[]

Defines the list of key codes associated with the reset action. Those keys reset the camera to its last stored state (with the method camera.storeState())

keysRight: number[]

Defines the list of key codes associated with the right action (decrease beta)

keysUp: number[]

Defines the list of key codes associated with the up action (increase alpha)

panningSensibility: number

Defines the panning sensibility of the inputs. (How fast is the camera panning)

useAltToZoom: boolean

Defines whether maintaining the alt key down switch the movement mode from orientation to zoom.

zoomingSensibility: number

Defines the zooming sensibility of the inputs. (How fast is the camera zooming)

Methods

  • attachControl(noPreventDefault?: boolean): void
  • checkInputs(): void
  • Update the current camera state depending on the inputs that have been used this frame. This is a dynamically created lambda to avoid the performance penalty of looping for inputs in the render loop.

    Returns 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

Legend

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

Settings

Theme