1
votes

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

1
are you trying to find device orientation only ??? - Vipul

1 Answers

1
votes

You can find example code and links to tutorials in the official documentation:

flash.sensors.Accelerometer