<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.15.0 -",
    "tvOS: 13.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "GameController",
  "identifier" : "/documentation/GameController/GCControllerTouchpadHandler",
  "metadataVersion" : "0.1.0",
  "role" : "Type Alias",
  "symbol" : {
    "kind" : "Type Alias",
    "modules" : [
      "Game Controller"
    ],
    "preciseIdentifier" : "c:@T@GCControllerTouchpadHandler"
  },
  "title" : "GCControllerTouchpadHandler"
}
-->

# GCControllerTouchpadHandler

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

```
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.

## Discussion

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)