GCControllerButtonTouchedChangedHandler
The signature for the block that executes when the user touches the button if the controller supports that feature.
Declaration
typealias GCControllerButtonTouchedChangedHandler = (GCControllerButtonInput, Float, Bool, Bool) -> VoidParameters
- button:
The button element whose value changed.
- value:
A normalized number between
0.0(minimum) and1.0(maximum) that represents the amount of physical or simulated pressure that the user applies to the button. - pressed:
A Boolean value that indicates whether the user is pressing the button. If True, the user is pressing the button and the
valueparameter contains the amount of pressure. If False, the user isn’t applying any pressure and thevalueparameter is0.0. - touched:
A Boolean value that indicates whether the user is touching the button. If True, the user is touching the button; otherwise, the user isn’t.