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

|

onrighttriggerchanged(callback) void

Parameters

Name Type Description
callback value number

|

onbuttondown(callback) void

Parameters

Name Type Description
callback buttonPressed Xbox360Button

|

onbuttonup(callback) void

Parameters

Name Type Description
callback buttonReleased Xbox360Button

|

ondpaddown(callback) void

Parameters

Name Type Description
callback dPadPressed Xbox360Dpad

|

ondpadup(callback) void

Parameters

Name Type Description
callback dPadReleased Xbox360Dpad

|

update() void

dispose() void