Contents

up

The button element that changes the positive y-axis.

Declaration

var up: GCControllerButtonInput { get }

Discussion

The value of the up and down buttons are mutually exclusive because the user can only press one of these buttons at a time. Therefore, when the up button is nonzero, the down button is 0.

See Also

Accessing values using directional buttons