CLASSES
TagsA - Z

Xbox360Pad

Gamepad

Description

class Xbox360Pad extends Gamepad

Constructor

new Xbox360Pad(id, index, gamepad, xboxOne)

Parameters

Name Type Description
id string
index number
gamepad any

Members

onButtonDownObservable : Observable<Xbox360Button>

onButtonUpObservable : Observable<Xbox360Button>

onPadDownObservable : Observable<Xbox360Dpad>

onPadUpObservable : Observable<Xbox360Dpad>

leftTrigger : number

rightTrigger : number

buttonA : number

buttonB : number

buttonX : number

buttonY : number

buttonStart : number

buttonBack : number

buttonLB : number

buttonRB : number

buttonLeftStick : number

buttonRightStick : number

dPadUp : number

dPadDown : number

dPadLeft : number

dPadRight : number

Methods

onlefttriggerchanged(callback) void

Parameters

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

onrighttriggerchanged(callback) void

Parameters

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

onbuttondown(callback) void

Parameters

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

onbuttonup(callback) void

Parameters

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

ondpaddown(callback) void

Parameters

Name Type Description
callback (dPadPressed: Xbox360Dpad) => void

ondpadup(callback) void

Parameters

Name Type Description
callback (dPadReleased: Xbox360Dpad) => void

update() void