---
title: GCSwitchElement
framework: gamecontroller
role: symbol
role_heading: Protocol
path: gamecontroller/gcswitchelement
---

# GCSwitchElement

The common properties for an element that represents a switch.

## Declaration

```swift
protocol GCSwitchElement : GCPhysicalInputElement
```

## Topics

### Getting input state

- [positionInput](gamecontroller/gcswitchelement/positioninput.md)

## Relationships

### Inherits From

- [GCPhysicalInputElement](gamecontroller/gcphysicalinputelement.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)

## See Also

### Elements

- [GCPhysicalInputElementCollection](gamecontroller/gcphysicalinputelementcollection-swift.struct.md)
- [GCPhysicalInputElement](gamecontroller/gcphysicalinputelement.md)
- [GCButtonElement](gamecontroller/gcbuttonelement.md)
- [GCAxisElement](gamecontroller/gcaxiselement.md)
- [GCDirectionPadElement](gamecontroller/gcdirectionpadelement.md)
