rotationRateChanged

Typemessage
DictionaryLCS
LibraryLiveCode Script
Syntax
rotationRateChanged <pXRate>, <pYRate>, <pZRate>
Summary

Sent to the current card of the default stack when the rotation of the device changes.

Introduced5.5
OSios, android
Platformsmobile
Parameters
NameTypeDescription
pXRate

the rate of acceleration around the x axis, in radians/second

pYRate

the rate of acceleration around the y axis, in radians/second

pZRate

the rate of acceleration around the z axis, in radians/second

Example
on rotationRateChanged pXRate, pYRate, pZRate
   -- display the rotation rate along the x axis
   put pXRate into tXAxisRate
end rotationRateChanged
RelatedCommand: mobileStopTrackingSensor, mobileStartTrackingSensor
Message: trackingError
Description

Handle the rotationRateChanged message if you want to perform an action when the rate of acceleration along any axis changes.

The rotationRateChanged message is sent to the current card of the default stack when the rate of rotation of the device changes.

Tagsui