---
title: GCDeviceHaptics
framework: gamecontroller
role: symbol
role_heading: Class
path: gamecontroller/gcdevicehaptics
---

# GCDeviceHaptics

The locations of haptic actuators on a game controller.

## Declaration

```swift
class GCDeviceHaptics
```

## Overview

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 supportsHaptics property of the engine that returns from the createEngine(withLocality:) method applies to the device, not the game controller. Use the supportedLocalities method in this class to determine whether a game controller supports haptics.

## Topics

### Creating a haptics engine

- [createEngine(withLocality:)](gamecontroller/gcdevicehaptics/createengine(withlocality:).md)
- [GCHapticDurationInfinite](gamecontroller/gchapticdurationinfinite.md)

### Getting the localities

- [supportedLocalities](gamecontroller/gcdevicehaptics/supportedlocalities.md)
- [GCHapticsLocality](gamecontroller/gchapticslocality.md)

## Relationships

### Inherits From

- [NSObject](objectivec/nsobject-swift.class.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

### Game controller profiles

- [Input](gamecontroller/input.md)
- [GCMotion](gamecontroller/gcmotion.md)
- [GCDeviceBattery](gamecontroller/gcdevicebattery.md)
- [GCDeviceLight](gamecontroller/gcdevicelight.md)
