GenericPad

Hierarchy

Index

Constructors

constructor

  • new GenericPad(id: string, index: number, browserGamepad: any): GenericPad

Properties

browserGamepad

browserGamepad: any

id

id: string

index

index: number

isConnected

isConnected: boolean

leftStick

leftStick: StickValues

onButtonDownObservable

onButtonDownObservable: Observable<number>

onButtonUpObservable

onButtonUpObservable: Observable<number>

rightStick

rightStick: StickValues

type

type: number

Static GAMEPAD

GAMEPAD: number

Static GENERIC

GENERIC: number

Static POSE_ENABLED

POSE_ENABLED: number

Static XBOX

XBOX: number

Methods

dispose

  • dispose(): void

onbuttondown

  • onbuttondown(callback: function): void
  • Parameters

    • callback: function
        • (buttonPressed: number): void
        • Parameters

          • buttonPressed: number

          Returns void

    Returns void

onbuttonup

  • onbuttonup(callback: function): void
  • Parameters

    • callback: function
        • (buttonReleased: number): void
        • Parameters

          • buttonReleased: number

          Returns void

    Returns void

onleftstickchanged

  • onleftstickchanged(callback: function): void

onrightstickchanged

  • onrightstickchanged(callback: function): void

update

  • update(): void

Generated using TypeDoc