#define LOG_NDEBUG 0
就會把 keyevent 的轉換機制 print 出來。這就是 logcat 出來 touch lcd 時的log:
V/EventHub( 2192): revents for 1 = 0x00000001
V/EventHub( 2192): /dev/input/event2 got: t0=95, t1=765659, type=3, code=0, v=406
V/EventHub( 2192): revents for 1 = 0x00000001
V/EventHub( 2192): /dev/input/event2 got: t0=95, t1=765678, type=3, code=1, v=279
V/EventHub( 2192): revents for 1 = 0x00000001
V/EventHub( 2192): /dev/input/event2 got: t0=95, t1=765682, type=3, code=24, v=83
V/EventHub( 2192): revents for 1 = 0x00000001
V/EventHub( 2192): /dev/input/event2 got: t0=95, t1=765689, type=1, code=330, v=1
V/EventHub( 2192): iev.code=330 outKeycode=0 outFlags=0x00000000 err=-19
V/EventHub( 2192): revents for 1 = 0x00000001
V/EventHub( 2192): /dev/input/event2 got: t0=95, t1=765698, type=0, code=0, v=0
V/EventHub( 2192): revents for 1 = 0x00000001
V/EventHub( 2192): /dev/input/event2 got: t0=95, t1=791410, type=3, code=24, v=0
V/EventHub( 2192): revents for 1 = 0x00000001
V/EventHub( 2192): /dev/input/event2 got: t0=95, t1=791434, type=1, code=330, v=0
V/EventHub( 2192): iev.code=330 outKeycode=0 outFlags=0x00000000 err=-19
V/EventHub( 2192): revents for 1 = 0x00000001
V/EventHub( 2192): /dev/input/event2 got: t0=95, t1=791452, type=0, code=0, v=0
沒有留言:
張貼留言