<!--
{
  "availability" : [
    "iOS: 17.4.0 -",
    "iPadOS: 17.4.0 -",
    "macCatalyst: 17.4.0 -",
    "macOS: 14.3.0 -",
    "tvOS: 17.4.0 -",
    "visionOS: 1.1.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "GameController",
  "identifier" : "/documentation/GameController/GCAxis2DInput",
  "metadataVersion" : "0.1.0",
  "role" : "Protocol",
  "symbol" : {
    "kind" : "Protocol",
    "modules" : [
      "Game Controller"
    ],
    "preciseIdentifier" : "c:objc(pl)GCAxis2DInput"
  },
  "title" : "GCAxis2DInput"
}
-->

# GCAxis2DInput

The common properties of inputs that provide a normalized point in a two-dimensional coordinate system with a fixed origin.

```
protocol GCAxis2DInput : NSObjectProtocol
```

## Overview

The normalized point with coordinates that range between `-1` and `1`. The origin `(0, 0)` represents the neutral state of the input.

## Topics

### Getting the characteristics

[`canWrap`](/documentation/GameController/GCAxis2DInput/canWrap)

A Boolean value that indicates whether the value wraps when it reaches the range’s minimum or maximum value.

[`isAnalog`](/documentation/GameController/GCAxis2DInput/isAnalog)

A Boolean value that indicates whether the input provides analog values.

### Getting the value

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

The axis input represented as a normalized point in a two-dimensional coordinate system.

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

A structure that represents a normalized point in a two-dimensional coordinate system.

[`valueDidChangeHandler`](/documentation/GameController/GCAxis2DInput/valueDidChangeHandler)

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

[`lastValueTimestamp`](/documentation/GameController/GCAxis2DInput/lastValueTimestamp)

The time of the most recent value change.

[`lastValueLatency`](/documentation/GameController/GCAxis2DInput/lastValueLatency)

The time in seconds between the last value change and the current time.

### Getting user actions

[`sources`](/documentation/GameController/GCAxis2DInput/sources)

One or more physical actions the user performs to manipulate the input.



---

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)