---
title: buttons
framework: gamecontroller
role: symbol
role_heading: Instance Property
path: gamecontroller/gcdevicephysicalinputstate/buttons-3257g
---

# buttons

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

## Declaration

```occ
@property (readonly) GCPhysicalInputElementCollection<NSString<GCButtonElementName> *,id<GCButtonElement>> * buttons;
```

## Mentioned in

Letting players use their second-generation Siri Remote as a game controller

## See Also

### Accessing elements

- [elements](gamecontroller/gcdevicephysicalinputstate/elements-1shp2.md)
- [axes](gamecontroller/gcdevicephysicalinputstate/axes-80rx.md)
- [dpads](gamecontroller/gcdevicephysicalinputstate/dpads-5yr9x.md)
- [switches](gamecontroller/gcdevicephysicalinputstate/switches-6bws2.md)
- [subscript(_:)](gamecontroller/gcdevicephysicalinputstate/subscript(_:).md)
