---
title: touchedDidChangeHandler
framework: gamecontroller
role: symbol
role_heading: Instance Property
path: gamecontroller/gctouchedstateinput/toucheddidchangehandler
---

# touchedDidChangeHandler

A block that the element calls when its touch value changes.

## Declaration

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

## Discussion

Discussion Use this property to get the latest state of the touch input. The block’s parameters are:

## See Also

### Getting change information

- [isTouched](gamecontroller/gctouchedstateinput/istouched.md)
- [lastTouchedStateTimestamp](gamecontroller/gctouchedstateinput/lasttouchedstatetimestamp.md)
- [lastTouchedStateLatency](gamecontroller/gctouchedstateinput/lasttouchedstatelatency.md)
