CLASSES
TagsA - Z

GenericPad

Gamepad

Description

class GenericPad extends Gamepad

Constructor

new GenericPad(id, index, browserGamepad)

Parameters

Name Type Description
id string
index number
browserGamepad any

Members

onButtonDownObservable : Observable<number>

onButtonUpObservable : Observable<number>

Methods

onbuttondown(callback) void

Parameters

Name Type Description
callback (buttonPressed: number) => void

onbuttonup(callback) void

Parameters

Name Type Description
callback (buttonReleased: number) => void

update() void