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

# xAxis

The input object that represents the x-axis on the directional pad.

## Declaration

```swift
var xAxis: any GCAxisInput { get }
```

## See Also

### Axes

- [yAxis](gamecontroller/gcdirectionpadelement/yaxis.md)
- [xyAxes](gamecontroller/gcdirectionpadelement/xyaxes.md)
- [GCAxis2DInput](gamecontroller/gcaxis2dinput.md)
