<!--
{
  "availability" : [
    "iOS: 8.0.0 -",
    "iPadOS: 8.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.10.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "GameController",
  "identifier" : "/documentation/GameController/GCControllerButtonInput/pressedChangedHandler",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Game Controller"
    ],
    "preciseIdentifier" : "c:objc(cs)GCControllerButtonInput(py)pressedChangedHandler"
  },
  "title" : "pressedChangedHandler"
}
-->

# pressedChangedHandler

The block that the element calls when the user presses or releases the button.

```
var pressedChangedHandler: GCControllerButtonValueChangedHandler? { get set }
```

## Discussion

Set this handler when you only want to know when the user presses or releases the button — that is, when the [`isPressed`](/documentation/GameController/GCControllerButtonInput/isPressed) property changes.

---

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)