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

# valueChangedHandler

The block that this profile calls when an element’s value changes.

## Declaration

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

## Discussion

Discussion If multiple elements change values at the same time, the profile calls this block once for each element that changed. If the value of a child element changes, the profile only calls the block for the containing element.

## See Also

### Receiving a callback when input values change

- [GCMicroGamepadValueChangedHandler](gamecontroller/gcmicrogamepadvaluechangedhandler.md)
