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.