【froyo】 (gingerbread对于multi-touch支持比较合理些了,期待对于gesture的定义使用。2011-01-23)
多点触摸顾名思义就是识别到两个或以上手指的触摸。
多点触摸技术目前有两种:Multi-Touch Gesture和Multi-Touch All-Point。
通俗地讲,就是多点触摸识别手势方向和多点触摸识别手指位置。
gesture:
下面的链接可以看到,gesture就可以做很多了:touch gesture reference guide
http://www.lukew.com/ff/entry.asp?1071
all point:
![Multi-touch all-point touchscreen](https://i-blog.csdnimg.cn/blog_migrate/7599bea805d667198d0c0891d59c7a0c.png)
multi的代码即是input framework的代码,这方面的文章多。
下面是android提到的scan code,当然,他用的就几个。
< textarea cols="50" rows="15" name="code" class="cpp"> // Absolute axes (EV_ABS) scan codes. public static final int ABS_X = 0x00; public static final int ABS_Y = 0x01; public static final int ABS_Z = 0x02; public static final int ABS_RX = 0x03; public static final int ABS_RY = 0x04; public static final int ABS_RZ = 0x05; public static final int ABS_THROTTLE = 0x06; public static final int ABS_RUDDER = 0x07; public static final int ABS_WHEEL = 0x08; public static final int ABS_GAS = 0x09; public static final int ABS_BRAKE = 0x0a; public static final int ABS_HAT0X = 0x10; public static final int ABS_HAT0Y = 0x11; public static final int ABS_HAT1X = 0x12; public static final int ABS_HAT1Y = 0x13; public static final int ABS_HAT2X = 0x14; public static final int ABS_HAT2Y = 0x15; public static final int ABS_HAT3X = 0x16; public static final int ABS_HAT3Y = 0x17; public static final int ABS_PRESSURE = 0x18; public static final int ABS_DISTANCE = 0x19; public static final int ABS_TILT_X = 0x1a; public static final int ABS_TILT_Y = 0x1b; public static final int ABS_TOOL_WIDTH = 0x1c; public static final int ABS_VOLUME = 0x20; public static final int ABS_MISC = 0x28; public static final int ABS_MT_TOUCH_MAJOR = 0x30; public static final int ABS_MT_TOUCH_MINOR = 0x31; public static final int ABS_MT_WIDTH_MAJOR = 0x32; public static final int ABS_MT_WIDTH_MINOR = 0x33; public static final int ABS_MT_ORIENTATION = 0x34; public static final int ABS_MT_POSITION_X = 0x35; public static final int ABS_MT_POSITION_Y = 0x36; public static final int ABS_MT_TOOL_TYPE = 0x37; public static final int ABS_MT_BLOB_ID = 0x38; public static final int ABS_MAX = 0x3f;