---
title: GCGamepadValueChangedHandler
framework: gamecontroller
role: symbol
role_heading: Type Alias
path: gamecontroller/gcgamepadvaluechangedhandler
---

# GCGamepadValueChangedHandler

Signature for the block executed if any element in the gamepad profile changes value.

## Declaration

```swift
typealias GCGamepadValueChangedHandler = (GCGamepad, GCControllerElement) -> Void
```

## Discussion

Discussion The block parameters are defined as follows: If multiple elements change values at the same time, the block is called once for each element that changed. The block is called only for the elements directly attached to the profile object; if a child element of one of those elements changes values, the block is called for the parent. This block type is used by the valueChangedHandler property.
