---
title: up
framework: gamecontroller
role: symbol
role_heading: Instance Property
path: gamecontroller/gccontrollerdirectionpad/up
---

# up

The button element that changes the positive y-axis.

## Declaration

```swift
var up: GCControllerButtonInput { get }
```

## Discussion

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

- [right](gamecontroller/gccontrollerdirectionpad/right.md)
- [left](gamecontroller/gccontrollerdirectionpad/left.md)
- [down](gamecontroller/gccontrollerdirectionpad/down.md)
