<!--
{
  "availability" : [
    "iOS: 16.0.0 -",
    "iPadOS: 16.0.0 -",
    "macCatalyst: 16.0.0 -",
    "macOS: 13.0.0 -",
    "tvOS: 16.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "GameController",
  "identifier" : "/documentation/GameController/GCButtonElement",
  "metadataVersion" : "0.1.0",
  "role" : "Protocol",
  "symbol" : {
    "kind" : "Protocol",
    "modules" : [
      "Game Controller"
    ],
    "preciseIdentifier" : "c:objc(pl)GCButtonElement"
  },
  "title" : "GCButtonElement"
}
-->

# GCButtonElement

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

```
protocol GCButtonElement : GCPhysicalInputElement
```

## Topics

### Getting input state

[`touchedInput`](/documentation/GameController/GCButtonElement/touchedInput)

The input object that provides the touch state of the element.

[`pressedInput`](/documentation/GameController/GCButtonElement/pressedInput)

The input object that provides the linear and press state of the element.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)