Instance Property


Returns whether the controller can return data for attitude and rotation rate.


var hasAttitudeAndRotationRate: Bool { get }


Use this property to verify a controller's capabilities before accessing the attitude and rotationRate properties.

See Also

Reading the Controller’s Motion Data

var gravity: GCAcceleration

The gravity vector, expressed in the controller's reference frame.

var userAcceleration: GCAcceleration

The acceleration that the user is giving to the controller.

var attitude: GCQuaternion

The current attitude of the controller.

var rotationRate: GCRotationRate

The current rotation rate of the controller.