---
title: valueDidChangeHandler
framework: gamecontroller
role: symbol
role_heading: Instance Property
path: gamecontroller/gcaxisinput/valuedidchangehandler
---

# valueDidChangeHandler

The block that the input object calls when the value changes.

## Declaration

```swift
var valueDidChangeHandler: ((any GCPhysicalInputElement, any GCAxisInput, Float) -> Void)? { get set }
```

## Discussion

Discussion The block’s parameters are:

## See Also

### Getting the value

- [value](gamecontroller/gcaxisinput/value.md)
- [lastValueTimestamp](gamecontroller/gcaxisinput/lastvaluetimestamp.md)
- [lastValueLatency](gamecontroller/gcaxisinput/lastvaluelatency.md)
