Reputation: 21
I'm trying to build a game for iOS using Adobe Air and Flash Builder 4.7, I need to read the gyroscope data to find out what is my alpha rotation value(0-360), I've been searching around for libs and native extensions to use with adobe air, but I'm a bit lost. Is there any easy way I can get this value on my app? Something like this guy does here:
Understanding How the Accelerometer and Gyroscope Work in the Browser
What I would need is an event that would give me an alpha rotation value, or a way to calculate this value using x/y/z and/or pitch/yaw/roll values.
Thanks
Upvotes: 1
Views: 376
Reputation: 17217
You can find example code and links to tutorials in the official documentation:
Upvotes: 1