---
title: pressedDidChangeHandler
framework: gamecontroller
role: symbol
role_heading: Instance Property
path: gamecontroller/gcpressedstateinput/presseddidchangehandler
---

# pressedDidChangeHandler

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

## Declaration

```swift
var pressedDidChangeHandler: ((any GCPhysicalInputElement, any GCPressedStateInput, Bool) -> Void)? { get set }
```

## Mentioned in

Handling input events

## Discussion

Discussion The block’s parameters are:

## See Also

### Getting change information

- [isPressed](gamecontroller/gcpressedstateinput/ispressed.md)
- [lastPressedStateTimestamp](gamecontroller/gcpressedstateinput/lastpressedstatetimestamp.md)
- [lastPressedStateLatency](gamecontroller/gcpressedstateinput/lastpressedstatelatency.md)
