---
title: GCControllerDirectionPad
framework: gamecontroller
role: symbol
role_heading: Class
path: gamecontroller/gccontrollerdirectionpad
---

# GCControllerDirectionPad

A control element associated with a directional pad or a thumbstick.

## Declaration

```swift
class GCControllerDirectionPad
```

## Overview

Overview You get the input values for this element from its subelements. You can use either the xAxis and yAxis properties to get coordinates, or the up, down, left, and right buttons that simulate directional pad buttons.

## Topics

### Accessing values using the axes

- [xAxis](gamecontroller/gccontrollerdirectionpad/xaxis.md)
- [yAxis](gamecontroller/gccontrollerdirectionpad/yaxis.md)

### Accessing values using directional buttons

- [right](gamecontroller/gccontrollerdirectionpad/right.md)
- [left](gamecontroller/gccontrollerdirectionpad/left.md)
- [up](gamecontroller/gccontrollerdirectionpad/up.md)
- [down](gamecontroller/gccontrollerdirectionpad/down.md)

### Getting change information

- [valueChangedHandler](gamecontroller/gccontrollerdirectionpad/valuechangedhandler.md)
- [GCControllerDirectionPadValueChangedHandler](gamecontroller/gccontrollerdirectionpadvaluechangedhandler.md)

### Setting snapshot values

- [setValueForXAxis(_:yAxis:)](gamecontroller/gccontrollerdirectionpad/setvalueforxaxis(_:yaxis:).md)

## Relationships

### Inherits From

- [GCControllerElement](gamecontroller/gccontrollerelement.md)

### Inherited By

- [GCDeviceCursor](gamecontroller/gcdevicecursor.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)
- [GCControllerTouchpad](gamecontroller/gccontrollertouchpad.md)
- [GCDeviceCursor](gamecontroller/gcdevicecursor.md)
- [GCDualSenseAdaptiveTrigger](gamecontroller/gcdualsenseadaptivetrigger.md)
