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

# GCSwitchPositionInput

The common properties of inputs that switch between two or more positions.

```
protocol GCSwitchPositionInput : NSObjectProtocol
```

## Topics

### Getting the characteristics

[`positionRange`](/documentation/GameController/GCSwitchPositionInput/positionRange)

The range of possible values for the switch.

[`isSequential`](/documentation/GameController/GCSwitchPositionInput/isSequential)

A Boolean value that indicates whether the position change is sequential.

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

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

### Getting the position

[`position`](/documentation/GameController/GCSwitchPositionInput/position)

The position of the switch.

[`positionDidChangeHandler`](/documentation/GameController/GCSwitchPositionInput/positionDidChangeHandler)

The block that the profile calls when the value of the switch changes.

[`lastPositionTimestamp`](/documentation/GameController/GCSwitchPositionInput/lastPositionTimestamp)

A timestamp for when the profile reports the last position.

[`lastPositionLatency`](/documentation/GameController/GCSwitchPositionInput/lastPositionLatency)

The time in seconds between the current and previous positions.

### Getting user actions

[`sources`](/documentation/GameController/GCSwitchPositionInput/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)