Hi all, I am wondering how to write a libsensors that captures keyboard input event of a specific keycode and simulate a change in a virtual orientation sensor to simulate screen rotation.
My first reference is the Android emulator. Trying the emulator with `getevent`: /dev/input/event0: 0005 0000 00000000 (Landscape) /dev/input/event0: 0005 0000 00000001 (Portrait) Which I found it to be a switch event. Using `sendevent /dev/input/ event0 5 0 0` can trigger a change in orientation (from portrait to landscape). Referring to sdk/emulator/sensors/sensors_qemu.c (Gingerbread 2.3.7), I don't seem to see the way it handles the event. Perhaps I don't really understand libsensors... or is it possible that it is handled elsewhere? Ok, so I think that making a libsensors to listen for keyboard event or monitoring `/dev/input/event0` (my device's pxa27x-keypad event) should be quite simple, only that I don't understand libsensors well. Can anyone help on this? Thanks, Alvin Wong -- unsubscribe: android-porting+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-porting