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

leftTrigger : number

Contains a value of the Xbox360Dpad enum refering to the left pad's direction

rightTrigger : number

Contains a value of the Xbox360Dpad enum refering to the right pad's direction

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

Binds an action on the left trigger property change

Parameters

Name Type Description
callback (value: number) => void The function to execute with the stick passed as argument

onrighttriggerchanged(callback) → void

Binds an action on the right trigger property change

Parameters

Name Type Description
callback (value: number) => void The function to execute with the stick passed as argument

onbuttondown(callback) → void

Binds an action on button pressed

Parameters

Name Type Description
callback (buttonPressed: Xbox360Button) => void The function to execute with the stick passed as argument

onbuttonup(callback) → void

Binds an action on button released

Parameters

Name Type Description
callback (buttonReleased: Xbox360Button) => void The function to execute with the stick passed as argument

ondpaddown(callback) → void

Binds an action on stick pressed

Parameters

Name Type Description
callback (dPadPressed: Xbox360Dpad) => void The function to execute with the stick passed as argument

ondpadup(callback) → void

Binds an action on stick released

Parameters

Name Type Description
callback (dPadReleased: Xbox360Dpad) => void The function to execute with the stick passed as argument

update() → void