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

# GCControllerButtonTouchedChangedHandler

The signature for the block that executes when the user touches the button if the controller supports that feature.

```
typealias GCControllerButtonTouchedChangedHandler = (GCControllerButtonInput, Float, Bool, Bool) -> Void
```

## Parameters

`button`

The button element whose value changed.

`value`

A normalized number between `0.0` (minimum) and `1.0` (maximum) that represents the amount of physical or simulated pressure that the user applies to the button.

`pressed`

A Boolean value that indicates whether the user is pressing the button. If <doc://com.apple.documentation/documentation/Swift/true>, the user is pressing the button and the `value` parameter contains the amount of pressure. If <doc://com.apple.documentation/documentation/Swift/false>, the user isn’t applying any pressure and the `value` parameter is `0.0`.

`touched`

A Boolean value that indicates whether the user is touching the button. If <doc://com.apple.documentation/documentation/Swift/true>, the user is touching 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)