FreeCameraGamepadInput

Manage the gamepad inputs to control a free camera.

see

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

Hierarchy

  • FreeCameraGamepadInput

Implements

Index

Properties

camera

camera: FreeCamera

Define the camera the input is attached to.

gamepad

gamepad: Nullable<Gamepad>

Define the Gamepad controlling the input

gamepadAngularSensibility

gamepadAngularSensibility: number

Defines the gamepad rotation sensiblity. This is the threshold from when rotation starts to be accounted for to prevent jittering.

gamepadMoveSensibility

gamepadMoveSensibility: number

Defines the gamepad move sensiblity. This is the threshold from when moving starts to be accounted for for to prevent jittering.

Methods

attachControl

  • attachControl(element: HTMLElement, noPreventDefault?: boolean): void

checkInputs

  • 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

  • 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

  • getClassName(): string

getSimpleName

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

    Returns string

    the input friendly name

Generated using TypeDoc