记录小米设备事件获取(二)

2014-11-24 09:40:04 · 作者: · 浏览: 11
ar) */
#define ABS_MT_WIDTH_MAJOR 0x32 /* Major axis of approaching ellipse */
#define ABS_MT_WIDTH_MINOR 0x33 /* Minor axis (omit if circular) */
#define ABS_MT_ORIENTATION 0x34 /* Ellipse orientation */
#define ABS_MT_POSITION_X 0x35 /* Center X ellipse position */
#define ABS_MT_POSITION_Y 0x36 /* Center Y ellipse position */
#define ABS_MT_TOOL_TYPE 0x37 /* Type of touching device (finger, pen, ...) */
#define ABS_MT_BLOB_ID 0x38 /* Group a set of packets as a blob */
#define ABS_MT_TRACKING_ID 0x39 /* Unique ID of initiated contact */
#define ABS_MT_PRESSURE 0x3a /* Pressure on contact area */
一次快速单击app图标触屏的监听:
getevent /dev/input/event1
0003 0039 00000037     初始化事件id  
0003 0039 00000000     初始化事件结束  
0003 0035 000000ae     坐标x  
0003 0036 000001ca     坐标y  
0003 003a 00000010      
0003 0032 00000010  
0000 0000 00000000     压下结束  
0003 003a 00000020  
0003 0032 00000020  
0000 0000 00000000     移动结束  
0003 0039 ffffffff     事件id清空  
0000 0000 00000000     一个事件的结束