---
title: allowsRotation
framework: gamecontroller
role: symbol
role_heading: Instance Property
path: gamecontroller/gcmicrogamepad/allowsrotation
---

# allowsRotation

A Boolean value that indicates whether the profile reports the directional pad values relative to its current orientation.

## Declaration

```swift
var allowsRotation: Bool { get set }
```

## Discussion

Discussion If this property is false, the profile reports the value of the directional pad only in portrait orientation even when the user rotates the controller. If this property is true, the profile reports the values using the current orientation. The default value for this property is false.

## See Also

### Getting directional pad inputs

- [dpad](gamecontroller/gcmicrogamepad/dpad.md)
- [reportsAbsoluteDpadValues](gamecontroller/gcmicrogamepad/reportsabsolutedpadvalues.md)
