GCControllerTouchpadHandler
The signature for the block that executes when the user interacts with the touchpad.
Declaration
typealias GCControllerTouchpadHandler = (GCControllerTouchpad, Float, Float, Float, Bool) -> VoidParameters
- touchpad:
The touchpad that the user interacts with.
- xValue:
A normalized value of the x-axis touch location ranging from
-1to1. - yValue:
A normalized value of the y-axis touch location ranging from
-1to1. - buttonValue:
A normalized number between
0.0(minimum) and1.0(maximum) that represents the level of pressure the user applies to the touchpad button. - buttonPressed:
A Boolean value that indicates whether the user is pressing the touchpad button. If True, the user is pressing the button; otherwise, the user isn’t.