---
title: GCControllerTouchpad
framework: gamecontroller
role: symbol
role_heading: Class
path: gamecontroller/gccontrollertouchpad
---

# GCControllerTouchpad

A control element that represents a touch event on a touchpad.

## Declaration

```swift
class GCControllerTouchpad
```

## Overview

Overview A GCControllerTouchpad object provides the state of the touches and presses on a touchpad. This is a compound element with button and directional pad subelements.

## Topics

### Getting the subelements

- [touchSurface](gamecontroller/gccontrollertouchpad/touchsurface.md)
- [button](gamecontroller/gccontrollertouchpad/button.md)

### Accessing the input values

- [touchState](gamecontroller/gccontrollertouchpad/touchstate-swift.property.md)
- [GCControllerTouchpad.TouchState](gamecontroller/gccontrollertouchpad/touchstate-swift.enum.md)
- [reportsAbsoluteTouchSurfaceValues](gamecontroller/gccontrollertouchpad/reportsabsolutetouchsurfacevalues.md)

### Getting change information

- [touchDown](gamecontroller/gccontrollertouchpad/touchdown.md)
- [touchMoved](gamecontroller/gccontrollertouchpad/touchmoved.md)
- [touchUp](gamecontroller/gccontrollertouchpad/touchup.md)
- [GCControllerTouchpadHandler](gamecontroller/gccontrollertouchpadhandler.md)

### Setting snapshot values

- [setValueForXAxis(_:yAxis:touchDown:buttonValue:)](gamecontroller/gccontrollertouchpad/setvalueforxaxis(_:yaxis:touchdown:buttonvalue:).md)

## Relationships

### Inherits From

- [GCControllerElement](gamecontroller/gccontrollerelement.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)

## See Also

### Accessing controller elements

- [GCControllerElement](gamecontroller/gccontrollerelement.md)
- [GCControllerAxisInput](gamecontroller/gccontrolleraxisinput.md)
- [GCControllerButtonInput](gamecontroller/gccontrollerbuttoninput.md)
- [GCControllerDirectionPad](gamecontroller/gccontrollerdirectionpad.md)
- [GCDeviceCursor](gamecontroller/gcdevicecursor.md)
- [GCDualSenseAdaptiveTrigger](gamecontroller/gcdualsenseadaptivetrigger.md)
