<!--
{
  "availability" : [
    "iOS: 16.0.0 -",
    "iPadOS: 16.0.0 -",
    "macCatalyst: -",
    "macOS: 13.0.0 -",
    "tvOS: 16.0.0 -",
    "visionOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "GameController",
  "identifier" : "/documentation/GameController/GCPhysicalInputElementCollection-swift.struct",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Game Controller"
    ],
    "preciseIdentifier" : "s:14GameController32GCPhysicalInputElementCollectionV"
  },
  "title" : "GCPhysicalInputElementCollection"
}
-->

# GCPhysicalInputElementCollection

A collection of physical input elements.

```
struct GCPhysicalInputElementCollection<T> where T : GCPhysicalInputElement
```

## Topics

### Accessing elements by name

[`subscript(_:)`](/documentation/GameController/GCPhysicalInputElementCollection-swift.struct/subscript(_:)-1twjd)

Accesses a contiguous subrange of a collection of direction pad elements.

[`subscript(_:)`](/documentation/GameController/GCPhysicalInputElementCollection-swift.struct/subscript(_:)-8m218)

Accesses a contiguous subrange of a collection of axis elements.

[`subscript(_:)`](/documentation/GameController/GCPhysicalInputElementCollection-swift.struct/subscript(_:)-3l6nj)

Accesses a contiguous subrange of a collection of button elements.

[`subscript(_:)`](/documentation/GameController/GCPhysicalInputElementCollection-swift.struct/subscript(_:)-4oje0)

Accesses a contiguous subrange of a collection of switch elements.

[`subscript(_:)`](/documentation/GameController/GCPhysicalInputElementCollection-swift.struct/subscript(_:)-85c13)

## Relationships

### Conforms To

[`Collection`](/documentation/Swift/Collection)

[`Sequence`](/documentation/Swift/Sequence)

---

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)