---
title: rotation
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nsevent/rotation
---

# rotation

The rotation in degrees of the tablet pointing device associated with this event.

## Declaration

```swift
var rotation: Float { get }
```

## Discussion

Discussion Many devices do not support rotation, in which case the returned value is 0.0. This property is valid only for mouse events with subtype NSTabletPointEventSubtype and for NSTabletPoint events.

## See Also

### Related Documentation

- [pressure](appkit/nsevent/pressure.md)

### Getting tablet pointing information

- [absoluteX](appkit/nsevent/absolutex.md)
- [absoluteY](appkit/nsevent/absolutey.md)
- [absoluteZ](appkit/nsevent/absolutez.md)
- [buttonMask](appkit/nsevent/buttonmask-swift.property.md)
- [NSEvent.ButtonMask](appkit/nsevent/buttonmask-swift.struct.md)
- [tangentialPressure](appkit/nsevent/tangentialpressure.md)
- [tilt](appkit/nsevent/tilt.md)
- [vendorDefined](appkit/nsevent/vendordefined.md)
