Class

GCControllerButtonInput

A GCControllerButtonInput element measures a button press. This element can either be analog or digital.

Symbols

Reading the Button’s Value

var isPressed: Bool

A Boolean value that indicates whether the button is pressed.

var value: Float

The level of pressure being applied to the button.

Receiving Notifications When the Button’s Value Changes

var pressedChangedHandler: GCControllerButtonValueChangedHandler?

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

var valueChangedHandler: GCControllerButtonValueChangedHandler?

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

Constants

GCControllerButtonValueChangedHandler

Signature for the block executed if a button changes values.

Relationships

Inherits From