---
title: GCButtonElement
framework: gamecontroller
role: symbol
role_heading: Protocol
path: gamecontroller/gcbuttonelement
---

# GCButtonElement

The common properties of an element that represents a momentary switch, such as a push button.

## Declaration

```swift
protocol GCButtonElement : GCPhysicalInputElement
```

## Topics

### Getting input state

- [touchedInput](gamecontroller/gcbuttonelement/touchedinput.md)
- [pressedInput](gamecontroller/gcbuttonelement/pressedinput.md)

### Instance Properties

- [forceInput](gamecontroller/gcbuttonelement/forceinput.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)
- [GCAxisElement](gamecontroller/gcaxiselement.md)
- [GCSwitchElement](gamecontroller/gcswitchelement.md)
- [GCDirectionPadElement](gamecontroller/gcdirectionpadelement.md)
