---
title: switches
framework: gamecontroller
role: symbol
role_heading: Instance Property
path: gamecontroller/gcdevicephysicalinputstate/switches-6bws2
---

# switches

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

## Declaration

```occ
@property (readonly) GCPhysicalInputElementCollection<NSString<GCSwitchElementName> *,id<GCSwitchElement>> * switches;
```

## See Also

### Accessing elements

- [elements](gamecontroller/gcdevicephysicalinputstate/elements-1shp2.md)
- [axes](gamecontroller/gcdevicephysicalinputstate/axes-80rx.md)
- [buttons](gamecontroller/gcdevicephysicalinputstate/buttons-3257g.md)
- [dpads](gamecontroller/gcdevicephysicalinputstate/dpads-5yr9x.md)
- [subscript(_:)](gamecontroller/gcdevicephysicalinputstate/subscript(_:).md)
