---
title: elements
framework: gamecontroller
role: symbol
role_heading: Instance Property
path: gamecontroller/gcdevicephysicalinputstate/elements-46hgy
---

# elements

The device’s elements as key-value pairs for lookup by name.

## Declaration

```swift
var elements: GCPhysicalInputElementCollection<any GCPhysicalInputElement> { get }
```

## See Also

### Accessing elements

- [axes](gamecontroller/gcdevicephysicalinputstate/axes-5u1xr.md)
- [buttons](gamecontroller/gcdevicephysicalinputstate/buttons-2ovae.md)
- [dpads](gamecontroller/gcdevicephysicalinputstate/dpads-7b4o3.md)
- [switches](gamecontroller/gcdevicephysicalinputstate/switches-6dcny.md)
- [subscript(_:)](gamecontroller/gcdevicephysicalinputstate/subscript(_:).md)
