---
title: GCControllerAxisInput
framework: gamecontroller
role: symbol
role_heading: Class
path: gamecontroller/gccontrolleraxisinput
---

# GCControllerAxisInput

A control element that tracks movement along an axis.

## Declaration

```swift
class GCControllerAxisInput
```

## Overview

Overview A GCControllerAxisInput object represents the value of a physical controller’s axis. For example, a GCControllerDirectionPad has x-axis and y-axis subelements.

## Topics

### Accessing the input values

- [value](gamecontroller/gccontrolleraxisinput/value.md)
- [setValue(_:)](gamecontroller/gccontrolleraxisinput/setvalue(_:).md)

### Getting change information

- [valueChangedHandler](gamecontroller/gccontrolleraxisinput/valuechangedhandler.md)
- [GCControllerAxisValueChangedHandler](gamecontroller/gccontrolleraxisvaluechangedhandler.md)

## Relationships

### Inherits From

- [GCControllerElement](gamecontroller/gccontrollerelement.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)

## See Also

### Accessing controller elements

- [GCControllerElement](gamecontroller/gccontrollerelement.md)
- [GCControllerButtonInput](gamecontroller/gccontrollerbuttoninput.md)
- [GCControllerTouchpad](gamecontroller/gccontrollertouchpad.md)
- [GCControllerDirectionPad](gamecontroller/gccontrollerdirectionpad.md)
- [GCDeviceCursor](gamecontroller/gcdevicecursor.md)
- [GCDualSenseAdaptiveTrigger](gamecontroller/gcdualsenseadaptivetrigger.md)
