---
title: haptics
framework: gamecontroller
role: symbol
role_heading: Instance Property
path: gamecontroller/gcstylus/haptics
---

# haptics

Gets the haptics profile for the stylus, if supported.

## Declaration

```swift
var haptics: GCDeviceHaptics? { get }
```

## Discussion

Discussion The haptics profile is represented as a GCDeviceHaptics instance, from which you can create CHHapticEngine instances targeting the haptic actuator(s) in the accessory. Not all stylus accessories support haptic feedback.  If the accessory does not support haptic feedback, this property is nil. note: Haptics are a drain on the accessory’s battery, and can be distracting when used excessively. Use haptic feedback judiciously and in response to meaningful user interactions.

## See Also

### Getting input values and haptics

- [input](gamecontroller/gcstylus/input.md)
