Gyroscope problem on iOS (maybe a bug)

Hi

We already contacted Ansca about this issue, but i think is a good idea to share this in the forum, maybe more devs have seen this problem and know a solution.

Only on iOS when you add the gyroscope event everything works as expected, it starts at 0,0,0 position and wherever you move the phone it register the rotation in the correct axis.

The problem is when you remove the event and add it again in another scene the gyro doesn’t start at 0,0,0, it starts in an already rotated position (generally to the upper right corner) even if the phone is on a flat surface, if you have the phone in your hands the angles can go crazy

Here are a sample project with the issue https://dl.dropbox.com/u/5704466/CoronaGyro.zip

sceneGame.lua is the file with the gyroscope event

To test just put the phone in a flat surface and hit the lower right button to reset the scene

When we test this on android everything works as expected

on iOS we have tested in iPod touch 4th gen and iphone 4

thanks! [import]uid: 57131 topic_id: 28888 reply_id: 328888[/import]