---
title: GCControllerTouchpadHandler
framework: gamecontroller
role: symbol
role_heading: Type Alias
path: gamecontroller/gccontrollertouchpadhandler
---

# GCControllerTouchpadHandler

The signature for the block that executes when the user interacts with the touchpad.

## Declaration

```swift
typealias GCControllerTouchpadHandler = (GCControllerTouchpad, Float, Float, Float, Bool) -> Void
```

## Parameters

- `touchpad`: The touchpad that the user interacts with.
- `xValue`: A normalized value of the x-axis touch location ranging from -1 to 1.
- `yValue`: A normalized value of the y-axis touch location ranging from -1 to 1.
- `buttonValue`: A normalized number between 0.0 (minimum) and 1.0 (maximum) that represents the level of pressure the user applies to the touchpad button.
- `buttonPressed`: A Boolean value that indicates whether the user is pressing the touchpad button. If doc://com.apple.documentation/documentation/Swift/true, the user is pressing the button; otherwise, the user isn’t.

## See Also

### Getting change information

- [touchDown](gamecontroller/gccontrollertouchpad/touchdown.md)
- [touchMoved](gamecontroller/gccontrollertouchpad/touchmoved.md)
- [touchUp](gamecontroller/gccontrollertouchpad/touchup.md)
