Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Gyroscope Implementation for android #3361
Appologies,, my first pull request ever. My day job lives in SVN. So, I'm learning. I like the review layout. Easier to see my mistakes ;-). I'll get these fixed pronto.. I'm also noticing something that I'll need to recompile and test on the device before committing. I'll change the comments and have the rest done today.
Might want to check the iOS API and the frame of reference it uses to make sure this can be future proofed for the eventual iOS implementation. I suppose the iOSInput class could reorient to the Android frame of reference so it doesn't have to be done in the core of a project.
Also, it might be nice to also add support for the Rotation Vector Sensor, which probably provides better results than pure gyroscope. It melds gyroscope with the accelerometer, tilt sensor and compass and smooths the results all behind the scenes. iOS has something similar in Core Motion CMAttitude. But that could be done in a separate pull.