Class

GCControllerAxisInput

A control element measuring movement along a particular axis.

Overview

An axis element is always an analog element.

Topics

Polling the Axis’ Value

var value: Float

The current value of the axis.

Receiving Notifications When the Axis’ Value Changes

var valueChangedHandler: GCControllerAxisValueChangedHandler?

A handler to be called when the axis changes value.

Constants

typealias GCControllerAxisValueChangedHandler

The signature for the block executed when an axis changes values.

Relationships

Inherits From

See Also

Input Elements

class GCControllerElement

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

class GCControllerButtonInput

A control element measuring a button press.

class GCControllerDirectionPad

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