<!--
{
  "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/GCPressedStateInput",
  "metadataVersion" : "0.1.0",
  "role" : "Protocol",
  "symbol" : {
    "kind" : "Protocol",
    "modules" : [
      "Game Controller"
    ],
    "preciseIdentifier" : "c:objc(pl)GCPressedStateInput"
  },
  "title" : "GCPressedStateInput"
}
-->

# GCPressedStateInput

The common properties for an element that has press state input, such as input from a button.

```
protocol GCPressedStateInput : NSObjectProtocol
```

## Topics

### Getting change information

[`isPressed`](/documentation/GameController/GCPressedStateInput/isPressed)

A Boolean value that indicates whether the user presses the button.

[`lastPressedStateTimestamp`](/documentation/GameController/GCPressedStateInput/lastPressedStateTimestamp)

The time of the most recent press state change.

[`lastPressedStateLatency`](/documentation/GameController/GCPressedStateInput/lastPressedStateLatency)

The time in seconds between the last press state change and the current time.

[`pressedDidChangeHandler`](/documentation/GameController/GCPressedStateInput/pressedDidChangeHandler)

The block that the profile calls when an element’s press state changes.

### Getting user actions

[`sources`](/documentation/GameController/GCPressedStateInput/sources)

One or more physical actions the user performs to manipulate the input.



---

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)