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

# switches

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

## Declaration

```swift
var switches: GCPhysicalInputElementCollection<any GCSwitchElement> { get }
```

## See Also

### Accessing elements

- [elements](gamecontroller/gcdevicephysicalinputstate/elements-46hgy.md)
- [axes](gamecontroller/gcdevicephysicalinputstate/axes-5u1xr.md)
- [buttons](gamecontroller/gcdevicephysicalinputstate/buttons-2ovae.md)
- [dpads](gamecontroller/gcdevicephysicalinputstate/dpads-7b4o3.md)
- [subscript(_:)](gamecontroller/gcdevicephysicalinputstate/subscript(_:).md)
