diff options
| author | Henrik Rydberg <rydberg@euromail.se> | 2008-11-05 00:02:22 +0100 |
|---|---|---|
| committer | Henrik Rydberg <rydberg@euromail.se> | 2008-11-05 00:02:22 +0100 |
| commit | 12b0a79f9e5bc483b5c16f702ae5b8836425827e (patch) | |
| tree | e0f1ef6f040d8122b418214d7cbf09db889edc2e /src/common.h | |
| parent | 85e6b86f23bea2e5265f6aaac2b5673409a9b7b5 (diff) | |
Break out capabilities
Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
Diffstat (limited to 'src/common.h')
| -rw-r--r-- | src/common.h | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/src/common.h b/src/common.h new file mode 100644 index 0000000..7aabd7e --- /dev/null +++ b/src/common.h | |||
| @@ -0,0 +1,34 @@ | |||
| 1 | #ifndef COMMON_H | ||
| 2 | #define COMMON_H | ||
| 3 | |||
| 4 | #include "xorg-server.h" | ||
| 5 | #include <xf86.h> | ||
| 6 | #include <xf86_OSproc.h> | ||
| 7 | #include <xf86Xinput.h> | ||
| 8 | //#include <exevents.h> | ||
| 9 | |||
| 10 | //////////////////////////////////////////////////////// | ||
| 11 | //#define BTN_MT_REPORT_PACKET 0x210 /* report multitouch packet data */ | ||
| 12 | //#define BTN_MT_REPORT_FINGER 0x211 /* report multitouch finger data */ | ||
| 13 | #define BTN_TOOL_PRESS 0x148 /* The trackpad is a physical button */ | ||
| 14 | #define BTN_MT_REPORT_PACKET 0x14b /* multitouch device */ | ||
| 15 | #define BTN_MT_REPORT_FINGER 0x14c /* multitouch device */ | ||
| 16 | #define BTN_TOOL_QUADTAP 0x14f /* Four fingers on trackpad */ | ||
| 17 | |||
| 18 | #define ABS_MT_TOUCH 0x30 | ||
| 19 | #define ABS_MT_TOUCH_MAJOR 0x30 | ||
| 20 | #define ABS_MT_TOUCH_MINOR 0x31 | ||
| 21 | #define ABS_MT_WIDTH 0x32 | ||
| 22 | #define ABS_MT_WIDTH_MAJOR 0x32 | ||
| 23 | #define ABS_MT_WIDTH_MINOR 0x33 | ||
| 24 | #define ABS_MT_ORIENTATION 0x34 | ||
| 25 | #define ABS_MT_POSITION_X 0x35 | ||
| 26 | #define ABS_MT_POSITION_Y 0x36 | ||
| 27 | |||
| 28 | typedef int bool; | ||
| 29 | |||
| 30 | #define SYSCALL(call) while (((call) == -1) && (errno == EINTR)) | ||
| 31 | |||
| 32 | //////////////////////////////////////////////////////// | ||
| 33 | |||
| 34 | #endif | ||
