<!--
{
  "availability" : [
    "iOS: 7.0.0 -",
    "iPadOS: 7.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.9.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "GameController",
  "identifier" : "/documentation/GameController/GCControllerAxisInput",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "Game Controller"
    ],
    "preciseIdentifier" : "c:objc(cs)GCControllerAxisInput"
  },
  "title" : "GCControllerAxisInput"
}
-->

# GCControllerAxisInput

A control element that tracks movement along an axis.

```
class GCControllerAxisInput
```

## Overview

A `GCControllerAxisInput` object represents the value of a physical controller’s axis. For example, a [`GCControllerDirectionPad`](/documentation/GameController/GCControllerDirectionPad) has x-axis and y-axis subelements.

## Topics

### Accessing the input values

[`value`](/documentation/GameController/GCControllerAxisInput/value)

The current value of the axis.

[`setValue(_:)`](/documentation/GameController/GCControllerAxisInput/setValue(_:))

Sets the normalized value of the axis.

### Getting change information

[`valueChangedHandler`](/documentation/GameController/GCControllerAxisInput/valueChangedHandler)

The block that the element calls when the user changes the axis value.

[`GCControllerAxisValueChangedHandler`](/documentation/GameController/GCControllerAxisValueChangedHandler)

The signature for the block that executes when the user changes the axis value.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)