Signature for the block executed if a button changes values.
- iOS 7.0+
- macOS 10.9+
- Mac Catalyst 13.0+
- tvOS 9.0+
- Game Controller
The block parameters are defined as follows:
The button element whose value changed.
The amount of pressure being applied to the button. This value is used in conjunction with the
pressedparameter. If pressure is being applied to the button, then the
trueand this parameter indicates the amount of pressure being applied to the button. The pressure value is normalized to a number between
0(minimum pressure) and
If no pressure is being applied to the button, then the
falseand this parameter holds a value of
A Boolean value that indicates whether the button is considered pressed.