A Message sent to the current card of the default stack when the rotation of the device changes. If there is a message handler by the same name in the message path, then it will be executed.
Message[]
Syntax:
rotationRateChanged <x>, <y>, <z>
The parameter <x> is the rate of acceleration around the x axis, in radians/second. The parameter <y> is the rate of acceleration around the y axis, in radians/second. The parameter <z> is the rate of acceleration around the x axis, in radians/second.
The rotationRateChanged message is sent to the current card of the default stack when the rate of rotation of the device changes.
Message handler[]
Examples:
on rotationRateChanged pXRate, pYRate, pZRate -- display the rotation rate along the x axis put pXRate into tXAxisRate end rotationRateChanged
Use the rotationRateChanged Message handler to perform an action when the rate of acceleration along any axis changes.
See also: mobileStartTrackingSensor & trackingError.