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

# xAxis

The x-axis element of the directional pad.

## Declaration

```swift
var xAxis: GCControllerAxisInput { get }
```

## See Also

### Accessing values using the axes

- [yAxis](gamecontroller/gccontrollerdirectionpad/yaxis.md)
