diff options
| author | Henrik Rydberg <rydberg@euromail.se> | 2008-11-04 21:17:06 +0100 |
|---|---|---|
| committer | Henrik Rydberg <rydberg@euromail.se> | 2008-11-04 21:17:06 +0100 |
| commit | 18a82383c0fde45dcfc1e4ab8a180e312d98d748 (patch) | |
| tree | b7baf15cfac1015c527da868a9f61f7984b9cd33 /src/multitouch.c | |
| parent | be3fe0da9995e59d32b4eb52368a012c0c18de85 (diff) | |
Try again, after adding the defines from synaptics
Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
Diffstat (limited to 'src/multitouch.c')
| -rw-r--r-- | src/multitouch.c | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/multitouch.c b/src/multitouch.c index 2c9b98a..2dfba79 100644 --- a/src/multitouch.c +++ b/src/multitouch.c | |||
| @@ -25,8 +25,19 @@ | |||
| 25 | #include <xf86.h> | 25 | #include <xf86.h> |
| 26 | #include <xf86_OSproc.h> | 26 | #include <xf86_OSproc.h> |
| 27 | #include <xf86Xinput.h> | 27 | #include <xf86Xinput.h> |
| 28 | #include <exevents.h> | 28 | //#include <exevents.h> |
| 29 | #include <linux/input.h> | 29 | #include <linux/input.h> |
| 30 | #include <errno.h> | ||
| 31 | |||
| 32 | //////////////////////////////////////////////////////////////////////////// | ||
| 33 | |||
| 34 | #define SYSCALL(call) while (((call) == -1) && (errno == EINTR)) | ||
| 35 | |||
| 36 | #define LONG_BITS (sizeof(long) * 8) | ||
| 37 | #define NBITS(x) (((x) + LONG_BITS - 1) / LONG_BITS) | ||
| 38 | #define OFF(x) ((x) % LONG_BITS) | ||
| 39 | #define LONG(x) ((x) / LONG_BITS) | ||
| 40 | #define TEST_BIT(bit, array) (array[LONG(bit)] & (1 << OFF(bit))) | ||
| 30 | 41 | ||
| 31 | //////////////////////////////////////////////////////////////////////////// | 42 | //////////////////////////////////////////////////////////////////////////// |
| 32 | 43 | ||
