---
title: touchedChangedHandler
framework: gamecontroller
role: symbol
role_heading: Instance Property
path: gamecontroller/gccontrollerbuttoninput/touchedchangedhandler
---

# touchedChangedHandler

The block that the element calls when the user touches the button.

## Declaration

```swift
var touchedChangedHandler: GCControllerButtonTouchedChangedHandler? { get set }
```

## Discussion

Discussion Set this handler when you want to know when the user touches the button before pressing the button.

## See Also

### Getting change information

- [GCControllerButtonTouchedChangedHandler](gamecontroller/gccontrollerbuttontouchedchangedhandler.md)
- [pressedChangedHandler](gamecontroller/gccontrollerbuttoninput/pressedchangedhandler.md)
- [valueChangedHandler](gamecontroller/gccontrollerbuttoninput/valuechangedhandler.md)
- [GCControllerButtonValueChangedHandler](gamecontroller/gccontrollerbuttonvaluechangedhandler.md)
