GamepadManager

Manager for handling gamepads

Hierarchy

  • GamepadManager

Index

Constructors

constructor

Find examples in Playground
  • Initializes the gamepad manager

    Parameters

    • Optional _scene: Scene | undefined

      BabylonJS scene

    Returns GamepadManager

Properties

gamepads

Find examples in Playground
gamepads: Gamepad[]

The gamepads in the game pad manager

onGamepadConnectedObservable

Find examples in Playground
onGamepadConnectedObservable: Observable<Gamepad>

observable to be triggered when the gamepad controller has been connected

onGamepadDisconnectedObservable

Find examples in Playground
onGamepadDisconnectedObservable: Observable<Gamepad>

observable to be triggered when the gamepad controller has been disconnected

Methods

dispose

Find examples in Playground
  • dispose(): void
  • Disposes the gamepad manager

    Returns void

getGamepadByType

Find examples in Playground
  • Get the gamepad controllers based on type

    Parameters

    • Optional type: number

      The type of gamepad controller

    Returns Nullable<Gamepad>

    Nullable gamepad

Generated using TypeDoc