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

# valueDidChangeHandler

The block that the axis element calls when its value changes.

## Declaration

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

## Discussion

Discussion The block’s parameters are:

## See Also

### Getting the value

- [value](gamecontroller/gcaxis2dinput/value.md)
- [GCPoint2](gamecontroller/gcpoint2.md)
- [lastValueTimestamp](gamecontroller/gcaxis2dinput/lastvaluetimestamp.md)
- [lastValueLatency](gamecontroller/gcaxis2dinput/lastvaluelatency.md)
