Options
All
  • Public
  • Public/Protected
  • All
Menu

Listen to keyboard events to control the camera.

see

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

Hierarchy

  • FlyCameraKeyboardInput

Implements

Index

Constructors

Properties

camera: FlyCamera

Defines the camera the input is attached to.

keysBackward: number[]

The list of keyboard keys used to control the backward move of the camera.

keysDown: number[]

The list of keyboard keys used to control the backward move of the camera.

keysForward: number[]

The list of keyboard keys used to control the forward move of the camera.

keysLeft: number[]

The list of keyboard keys used to control the left strafe move of the camera.

keysRight: number[]

The list of keyboard keys used to control the right strafe move of the camera.

keysUp: number[]

The list of keyboard keys used to control the forward move of the camera.

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
  • Property
  • Method
  • Inherited constructor
  • Static method

Settings

Theme