Hello XMLVM community!
I'm building an Android-iPhone game framework using XMLVM. I've been working on implementing device orientation processing for motion controls - with the vanilla Android SDK I did this by giving the accelerometer and magnetometer readings to SensorManager's getRotationMatrix and getOrientation class methods, which are not implemented in the XMLVM compatibility library. So, I took a look at the Android source and reimplemented them in my project! This works to calculate orientation on my Android phone and the cross-compiled iPhone app runs in the simulator, though I don't have an iOS device to actually test the orientation processing (Apple's emulators don't simulate hardware sensors). If this makes sense to anyone else would a contributor be willing to add those methods to XMLVM's SensorManager?
Sam
|