Options
All
  • Public
  • Public/Protected
  • All
Menu

Manage the gamepad inputs to control an arc rotate camera.

see

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

Hierarchy

  • ArcRotateCameraGamepadInput

Implements

Index

Constructors

Properties

Defines the camera the input is attached to.

gamepad: Nullable<Gamepad>

Defines the gamepad the input is gathering event from.

gamepadMoveSensibility: number

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

gamepadRotationSensibility: number

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

Accessors

  • get invertYAxis(): boolean
  • set invertYAxis(value: boolean): void
  • Gets or sets a boolean indicating that Yaxis (for right stick) should be inverted

    Returns boolean

  • Gets or sets a boolean indicating that Yaxis (for right stick) should be inverted

    Parameters

    • value: boolean

    Returns void

Methods

  • attachControl(): void
  • Attach the input controls to a specific dom element to get the input from.

    Returns 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 intput.

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

Settings

Theme