Class

GCControllerButtonInput

A control element measuring a button press.

Declaration

@interface GCControllerButtonInput : GCControllerElement

Overview

A button element can either be analog or digital.

Topics

Reading the Button’s Value

pressed

A Boolean value that indicates whether the button is pressed.

value

The level of pressure being applied to the button.

Receiving Notifications When the Button’s Value Changes

pressedChangedHandler

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

valueChangedHandler

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

Constants

GCControllerButtonValueChangedHandler

Signature for the block executed if a button changes values.

Instance Methods

Relationships

Inherits From

See Also

Input Elements

GCControllerElement

An input associated with a physical control, such as a button or thumbstick.

GCControllerAxisInput

A control element measuring movement along a particular axis.

GCControllerDirectionPad

A control element associated with a directional pad or a thumbstick.