Type Alias

GCControllerDirectionPadValueChangedHandler

Signature for the block executed when either axis changes values.

Declaration

typealias GCControllerDirectionPadValueChangedHandler = (GCControllerDirectionPad, Float, Float) -> Void

Discussion

The block parameters are defined as follows:

dpad

The axis element whose value changed.

xValue

The new value of the x-axis, measured from -1 to 1.

yValue

The new value of the y-axis, measured from -1 to 1.

This block type is used by the valueChangedHandler property.