---
title: GCDevicePhysicalInputStateDiff
framework: gamecontroller
role: symbol
role_heading: Protocol
path: gamecontroller/gcdevicephysicalinputstatediff
---

# GCDevicePhysicalInputStateDiff

The common functions for objects that contain the differences between a current and previous input state object.

## Declaration

```swift
protocol GCDevicePhysicalInputStateDiff : NSObjectProtocol
```

## Overview

Overview Use the GCDevicePhysicalInput nextInputState() method to get an input state object conforming to this protocol.

## Topics

### Getting changes

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

## Relationships

### Inherits From

- [NSObjectProtocol](objectivec/nsobjectprotocol.md)

## See Also

### Essentials

- [Handling input events](gamecontroller/handling-input-events.md)
- [GCDevicePhysicalInput](gamecontroller/gcdevicephysicalinput.md)
- [GCDevicePhysicalInputState](gamecontroller/gcdevicephysicalinputstate.md)
