Touch Protocol
All devices support Single Touch Protocol. The
Cervantes 4 (and maybe other recent models) emits both
Single Touch and
Multitouch B input events. The device reports:
Code:
evtest /dev/input/event1
Input driver version is 1.0.1
Input device ID: bus 0x18 vendor 0x0 product 0x0 version 0x0
Input device name: "Neonode zForce touchscreen"
Supported events:
Event type 0 (EV_SYN)
Event type 1 (EV_KEY)
Event code 330 (BTN_TOUCH)
Event type 3 (EV_ABS)
Event code 0 (ABS_X)
Value 619
Min 0
Max 1072
Event code 1 (ABS_Y)
Value 832
Min 0
Max 1448
Event code 24 (ABS_PRESSURE)
Value 0
Min 0
Max 1048
Event code 47 (ABS_MT_SLOT)
Value 0
Min 0
Max 1
Event code 48 (ABS_MT_TOUCH_MAJOR)
Value 0
Min 0
Max 255
Event code 49 (ABS_MT_TOUCH_MINOR)
Value 0
Min 0
Max 255
Event code 52 (ABS_MT_ORIENTATION)
Value 0
Min 0
Max 1
Event code 53 (ABS_MT_POSITION_X)
Value 0
Min 0
Max 1072
Event code 54 (ABS_MT_POSITION_Y)
Value 0
Min 0
Max 1448
Event code 57 (ABS_MT_TRACKING_ID)
Value 0
Min 0
Max 65535
Properties:
Testing ... (interrupt to exit)
A single touch will output:
Code:
Event: time 51393.692783, type 3 (EV_ABS), code 57 (ABS_MT_TRACKING_ID), value 1607
Event: time 51393.692786, type 3 (EV_ABS), code 53 (ABS_MT_POSITION_X), value 350
Event: time 51393.692788, type 3 (EV_ABS), code 54 (ABS_MT_POSITION_Y), value 249
Event: time 51393.692789, type 3 (EV_ABS), code 48 (ABS_MT_TOUCH_MAJOR), value 8
Event: time 51393.692790, type 3 (EV_ABS), code 49 (ABS_MT_TOUCH_MINOR), value 8
Event: time 51393.692792, type 3 (EV_ABS), code 0 (ABS_X), value 249
Event: time 51393.692793, type 3 (EV_ABS), code 1 (ABS_Y), value 722
Event: time 51393.692795, type 1 (EV_KEY), code 330 (BTN_TOUCH), value 1
Event: time 51393.692796, type 3 (EV_ABS), code 24 (ABS_PRESSURE), value 1024
Event: time 51393.692797, -------------- SYN_REPORT ------------
Event: time 51393.694611, type 3 (EV_ABS), code 57 (ABS_MT_TRACKING_ID), value -1
Event: time 51393.694615, type 1 (EV_KEY), code 330 (BTN_TOUCH), value 0
Event: time 51393.694616, type 3 (EV_ABS), code 24 (ABS_PRESSURE), value 0
Event: time 51393.694617, -------------- SYN_REPORT ------------
KOReader only supports SingleTouch for these devices