<!--
{
  "availability" : [
    "iOS: 14.0.0 -",
    "iPadOS: 14.0.0 -",
    "macCatalyst: 14.0.0 -",
    "macOS: 11.0.0 -",
    "tvOS: 14.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "GameController",
  "identifier" : "/documentation/GameController/GCDualShockGamepad",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "Game Controller"
    ],
    "preciseIdentifier" : "c:objc(cs)GCDualShockGamepad"
  },
  "title" : "GCDualShockGamepad"
}
-->

# GCDualShockGamepad

A controller profile that supports the DualShock 4 controller.

```
class GCDualShockGamepad
```

## Overview

The DualShock 4 controller profile is similar to an extended gamepad ([`GCExtendedGamepad`](/documentation/GameController/GCExtendedGamepad)), but has a touchpad with a button and two-finger tracking.

![An illustration of a DualShock 4 controller showing the touchpad.](images/com.apple.gamecontroller/media-3830806@2x.png)

This profile also supports motion — that is, the controller’s [`motion`](/documentation/GameController/GCController/motion) property is non-nil. If you hold the controller in front of you, the direction of the axes are:

- The positive x-axis points to your right.
- The positive y-axis points up.
- The positive z-axis starts at the touchpad and points to you.

![An illustration of a DualShock 4 controller showing the directions of the x, y, and z axes.](images/com.apple.gamecontroller/media-3856422@2x.png)

## Topics

### Getting button input

[`touchpadButton`](/documentation/GameController/GCDualShockGamepad/touchpadButton)

The button element on the touchpad of the controller.

### Tracking finger locations

[`touchpadPrimary`](/documentation/GameController/GCDualShockGamepad/touchpadPrimary)

The location of the player’s primary finger on the touchpad.

[`touchpadSecondary`](/documentation/GameController/GCDualShockGamepad/touchpadSecondary)

The location of the player’s secondary finger on the touchpad.

### Accessing elements by name

[DualShock controller input names](/documentation/GameController/dualshock-controller-input-names)

Constants for names of DualShock 4 elements.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)