---
title: GCControllerDirectionPadValueChangedHandler
framework: gamecontroller
role: symbol
role_heading: Type Alias
path: gamecontroller/gccontrollerdirectionpadvaluechangedhandler
---

# GCControllerDirectionPadValueChangedHandler

The signature for the block that executes when either axis changes values.

## Declaration

```swift
typealias GCControllerDirectionPadValueChangedHandler = (GCControllerDirectionPad, Float, Float) -> Void
```

## Parameters

- `dpad`: The directional pad element that changed.
- `xValue`: A normalized value of the x-axis ranging from -1 to 1.
- `yValue`: A normalized value of the y-axis ranging from -1 to 1.

## See Also

### Getting change information

- [valueChangedHandler](gamecontroller/gccontrollerdirectionpad/valuechangedhandler.md)
