Gamepad

Hierarchy

Index

Constructors

constructor

  • new Gamepad(id: string, index: number, browserGamepad: any, leftStickX?: number, leftStickY?: number, rightStickX?: number, rightStickY?: number): Gamepad
  • Parameters

    • id: string
    • index: number
    • browserGamepad: any
    • Optional leftStickX: number
    • Optional leftStickY: number
    • Optional rightStickX: number
    • Optional rightStickY: number

    Returns Gamepad

Properties

browserGamepad

browserGamepad: any

id

id: string

index

index: number

isConnected

isConnected: boolean

leftStick

leftStick: StickValues

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
  • Returns void

onleftstickchanged

  • onleftstickchanged(callback: function): void
  • Parameters

    Returns void

onrightstickchanged

  • onrightstickchanged(callback: function): void
  • Parameters

    Returns void

update

  • update(): void
  • Returns void

Generated using TypeDoc