Hi, I'm implementing a libsensors for my tablet. It's not like a typical sensor on the phone. It just generates standard keycode ctrl-alt-up,down,left,right when rotate the tablet.
Basically, I have almost finished the implementation. I implemented an accelerometer and simulate the acceleration vectors, just like the qemu emulator does (ref: external/qemu/android/hw-sensors.c ) I have succeeded to generate events of rotation of degree 90 and 270. However, I was unable to simulate rotation degree 180. The qemu hw-sensors.c doesn't have correct values to simulate rotation 180. I have tried all possible values I can think, but all failed. Anyone has a hint for how to simulate rotation 180? Or, if someone could provide the output values of acceleration vectors generated by a typical sensor on the phone, that would be great! Thanks a lot! -- unsubscribe: [email protected] website: http://groups.google.com/group/android-porting
