---
title: valueChangedHandler
framework: gamecontroller
role: symbol
role_heading: Instance Property
path: gamecontroller/gccontrollerbuttoninput/valuechangedhandler
---

# valueChangedHandler

The block that the element calls when the user changes the level of pressure on the button.

## Declaration

```swift
var valueChangedHandler: GCControllerButtonValueChangedHandler? { get set }
```

## Discussion

Discussion Set this handler when you want to know when the pressure level changes.

## See Also

### Getting change information

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