G-Sensor on Android?

Community Forums/Monkey Talk/G-Sensor on Android?

popcade(Posted 2011) [#1]
I don't know if G-sensor is the standard of Android devices but seems pretty common, at least on machines I have.

As mojo is actually a generic 2d gfx module, can I access G-Sensor on an Android device if available?

I can't find the info so I post the question here before I purchase as I'm in need of this function currently for a motion based app.


degac(Posted 2011) [#2]
At the moment monkey/mojo captures events of type TYPE_ACCELEROMETER.
I think monkey could be extended to listen TYPE_MAGNETIC_FIELD events or to implement the GeomagneticField class.

I'm sure it can done, but dont' ask me how to do it! My efforts allow me to add only CurrentTime and CurrentDate support for Android/HTML/Flash! And it was a miracle (for me!)