---
title: GCControllerPlayerIndex
framework: gamecontroller
role: symbol
role_heading: Enumeration
path: gamecontroller/gccontrollerplayerindex
---

# GCControllerPlayerIndex

The possible values for controller player indices.

## Declaration

```swift
enum GCControllerPlayerIndex
```

## Topics

### Player indices

- [GCControllerPlayerIndex.indexUnset](gamecontroller/gccontrollerplayerindex/indexunset.md)
- [GCControllerPlayerIndex.index1](gamecontroller/gccontrollerplayerindex/index1.md)
- [GCControllerPlayerIndex.index2](gamecontroller/gccontrollerplayerindex/index2.md)
- [GCControllerPlayerIndex.index3](gamecontroller/gccontrollerplayerindex/index3.md)
- [GCControllerPlayerIndex.index4](gamecontroller/gccontrollerplayerindex/index4.md)

### Initializers

- [init(rawValue:)](gamecontroller/gccontrollerplayerindex/init(rawvalue:).md)

## Relationships

### Conforms To

- [BitwiseCopyable](swift/bitwisecopyable.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [RawRepresentable](swift/rawrepresentable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Identifying controllers and displaying a player index

- [playerIndex](gamecontroller/gccontroller/playerindex.md)
