<!--
{
  "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/GCDeviceHaptics",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "Game Controller"
    ],
    "preciseIdentifier" : "c:objc(cs)GCDeviceHaptics"
  },
  "title" : "GCDeviceHaptics"
}
-->

# GCDeviceHaptics

The locations of haptic actuators on a game controller.

```
class GCDeviceHaptics
```

## Overview

Use this class to create a haptic engine with a specified locality. Any patterns you send to that engine play on the specified actuators.

> Important:
> The <doc://com.apple.documentation/documentation/CoreHaptics/CHHapticDeviceCapability/supportsHaptics> property of the engine that returns from the ``doc://com.apple.gamecontroller/documentation/GameController/GCDeviceHaptics/createEngine(withLocality:)`` method applies to the device, not the game controller. Use the ``doc://com.apple.gamecontroller/documentation/GameController/GCDeviceHaptics/supportedLocalities`` method in this class to determine whether a game controller supports haptics.

## Topics

### Creating a haptics engine

[`createEngine(withLocality:)`](/documentation/GameController/GCDeviceHaptics/createEngine(withLocality:))

Creates a haptics engine with the specified locality.

[`GCHapticDurationInfinite`](/documentation/GameController/GCHapticDurationInfinite)

An infinite duration for a haptics event.

### Getting the localities

[`supportedLocalities`](/documentation/GameController/GCDeviceHaptics/supportedLocalities)

The locations of haptic actuators on the device.

[`GCHapticsLocality`](/documentation/GameController/GCHapticsLocality)

The location of one or more haptics actuators on a game controller.



---

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)