Instance Property

pressedChangedHandler

A handler to be called when the button is pressed or released.

Declaration

var pressedChangedHandler: GCControllerButtonValueChangedHandler? { get set }

Discussion

This handler is called only when the button’s isPressed property changes.

See Also

Receiving Notifications When the Button’s Value Changes

var valueChangedHandler: GCControllerButtonValueChangedHandler?

A handler to be called when the pressure on a button changes.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software