summaryrefslogtreecommitdiff
path: root/src/common.h
diff options
context:
space:
mode:
authorHenrik Rydberg <rydberg@euromail.se>2009-05-16 20:07:01 +0200
committerHenrik Rydberg <rydberg@euromail.se>2009-05-16 20:07:01 +0200
commitba20f03d7d2794b3d794e839ba1db45ba327bb62 (patch)
tree35fdd3c1a3c9863c601750c81f24a56bca122b94 /src/common.h
parentecb6a617cc0af69fd4733d9095a5cff842b8e552 (diff)
adapt to final version of MT protocol
Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
Diffstat (limited to 'src/common.h')
-rw-r--r--src/common.h33
1 files changed, 18 insertions, 15 deletions
diff --git a/src/common.h b/src/common.h
index 0ddfaaf..cbcde90 100644
--- a/src/common.h
+++ b/src/common.h
@@ -8,25 +8,28 @@
8#include <linux/input.h> 8#include <linux/input.h>
9#include <errno.h> 9#include <errno.h>
10#include <match/match.h> 10#include <match/match.h>
11//#include <exevents.h>
12 11
13//////////////////////////////////////////////////////// 12////////////////////////////////////////////////////////
14//#define BTN_MT_REPORT_PACKET 0x210 /* report multitouch packet data */ 13
15//#define BTN_MT_REPORT_FINGER 0x211 /* report multitouch finger data */ 14// includes available in 2.6.30-rc5
16#define BTN_TOOL_PRESS 0x148 /* The trackpad is a physical button */ 15
17#define BTN_MT_REPORT_PACKET 0x14b /* multitouch device */ 16#ifndef BTN_TOOL_QUADTAP
18#define BTN_MT_REPORT_FINGER 0x14c /* multitouch device */
19#define BTN_TOOL_QUADTAP 0x14f /* Four fingers on trackpad */ 17#define BTN_TOOL_QUADTAP 0x14f /* Four fingers on trackpad */
18#define ABS_MT_TOUCH_MAJOR 0x30 /* Major axis of touching ellipse */
19#define ABS_MT_TOUCH_MINOR 0x31 /* Minor axis (omit if circular) */
20#define ABS_MT_WIDTH_MAJOR 0x32 /* Major axis of approaching ellipse */
21#define ABS_MT_WIDTH_MINOR 0x33 /* Minor axis (omit if circular) */
22#define ABS_MT_ORIENTATION 0x34 /* Ellipse orientation */
23#define ABS_MT_POSITION_X 0x35 /* Center X ellipse position */
24#define ABS_MT_POSITION_Y 0x36 /* Center Y ellipse position */
25#define ABS_MT_TOOL_TYPE 0x37 /* Type of touching device */
26#define ABS_MT_BLOB_ID 0x38 /* Group a set of packets as a blob */
27#define SYN_MT_REPORT 2
28#define MT_TOOL_FINGER 0
29#define MT_TOOL_PEN 1
30#endif
20 31
21#define ABS_MT_TOUCH 0x30 32////////////////////////////////////////////////////////
22#define ABS_MT_TOUCH_MAJOR 0x30
23#define ABS_MT_TOUCH_MINOR 0x31
24#define ABS_MT_WIDTH 0x32
25#define ABS_MT_WIDTH_MAJOR 0x32
26#define ABS_MT_WIDTH_MINOR 0x33
27#define ABS_MT_ORIENTATION 0x34
28#define ABS_MT_POSITION_X 0x35
29#define ABS_MT_POSITION_Y 0x36
30 33
31#define SYSCALL(call) while (((call) == -1) && (errno == EINTR)) 34#define SYSCALL(call) while (((call) == -1) && (errno == EINTR))
32 35