Cocos2D.CCGamePadButtonDelegate
Delegate CCGamePadButtonDelegate
Namespace: Cocos2D
Assembly: Cocos2D.dll, cocos2d_mono.Core.Android.dll, cocos2d_mono.Core.DesktopGL.dll, cocos2d-mono.Core.iOS.dll, cocos2d_mono.Core.Linux.dll, cocos2d_mono.Core.macOS.dll, cocos2d_mono.Windows.dll, cocos2d_mono.DesktopGL.dll, cocos2d-mono.iOS.dll, cocos2d_mono.Linux.dll, cocos2d_mono.macOS.dll
The event delegate to handle game pad button state changes. This delegate handles all discrete button devices on the gamepad. See the CCGamePadTriggerDelegate and CCGamePadStickDelegate and CCGamePadDPadDelegate for the analog controls.
public delegate void CCGamePadButtonDelegate(CCGamePadButtonStatus backButton, CCGamePadButtonStatus startButton, CCGamePadButtonStatus systemButton, CCGamePadButtonStatus aButton, CCGamePadButtonStatus bButton, CCGamePadButtonStatus xButton, CCGamePadButtonStatus yButton, CCGamePadButtonStatus leftShoulder, CCGamePadButtonStatus rightShoulder, PlayerIndex player)
Parameters
backButton
CCGamePadButtonStatus
State of the back button
startButton
CCGamePadButtonStatus
State of the start button
systemButton
CCGamePadButtonStatus
State of the system (Xbox, PS3) button
aButton
CCGamePadButtonStatus
State of the A (bottom) button
bButton
CCGamePadButtonStatus
State of the B (right) button
xButton
CCGamePadButtonStatus
State of the X (left) button
yButton
CCGamePadButtonStatus
State of the Y (top) button
leftShoulder
CCGamePadButtonStatus
State of the left shoulder button
rightShoulder
CCGamePadButtonStatus
State of the right shoulder button
player
PlayerIndex