---
title: "change(for:)"
framework: gamecontroller
role: symbol
role_heading: Instance Method
path: "gamecontroller/gcdevicephysicalinputstatediff/change(for:)"
---

# change(for:)

Returns whether the input value of an element changes.

## Declaration

```swift
func change(for element: any GCPhysicalInputElement) -> GCDevicePhysicalInputElementChange
```

## Parameters

- `element`: The element whose value changes.

## Mentioned in

Handling input events

## Return Value

Return Value Description of the change to the element.

## See Also

### Getting changes

- [GCDevicePhysicalInputElementChange](gamecontroller/gcdevicephysicalinputelementchange.md)
- [changedElements()](gamecontroller/gcdevicephysicalinputstatediff/changedelements()-9cdq4.md)
- [changedElements()](gamecontroller/gcdevicephysicalinputstatediff/changedelements()-2zzwm.md)
