---
title: elements
framework: gamecontroller
role: symbol
role_heading: Instance Property
path: gamecontroller/gcdevicephysicalinputstate/elements-1shp2
---

# elements

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

## Declaration

```occ
@property (readonly) GCPhysicalInputElementCollection<NSString<GCPhysicalInputElementName> *,id<GCPhysicalInputElement>> * elements;
```

## See Also

### Accessing elements

- [axes](gamecontroller/gcdevicephysicalinputstate/axes-80rx.md)
- [buttons](gamecontroller/gcdevicephysicalinputstate/buttons-3257g.md)
- [dpads](gamecontroller/gcdevicephysicalinputstate/dpads-5yr9x.md)
- [switches](gamecontroller/gcdevicephysicalinputstate/switches-6bws2.md)
- [subscript(_:)](gamecontroller/gcdevicephysicalinputstate/subscript(_:).md)
