diff options
| author | Henrik Rydberg <rydberg@euromail.se> | 2009-08-23 21:48:47 +0200 |
|---|---|---|
| committer | Henrik Rydberg <rydberg@euromail.se> | 2009-08-23 21:48:47 +0200 |
| commit | ed48e39ea7f945e13b787ccc25937661de134b6a (patch) | |
| tree | 06a444245800513302550d6c9248ac96deb9e2a4 /src | |
| parent | ca85f84aedb3b4cfd78dfe1874239421de8807d6 (diff) | |
Support ABI_XINPUT version between 1 and 7
Compiles on ubuntu versions Intrepid, Jaunty, Karmic.
Diffstat (limited to 'src')
| -rw-r--r-- | src/multitouch.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/multitouch.c b/src/multitouch.c index 11f1e19..4fb1e4b 100644 --- a/src/multitouch.c +++ b/src/multitouch.c | |||
| @@ -57,12 +57,22 @@ static int device_init(DeviceIntPtr dev, LocalDevicePtr local) | |||
| 57 | } | 57 | } |
| 58 | xf86CloseSerial(local->fd); | 58 | xf86CloseSerial(local->fd); |
| 59 | 59 | ||
| 60 | #if GET_ABI_MAJOR(ABI_XINPUT_VERSION) < 3 | ||
| 60 | InitPointerDeviceStruct((DevicePtr)dev, | 61 | InitPointerDeviceStruct((DevicePtr)dev, |
| 61 | btmap, DIM_BUTTON, | 62 | btmap, DIM_BUTTON, |
| 62 | GetMotionHistory, | 63 | GetMotionHistory, |
| 63 | pointer_control, | 64 | pointer_control, |
| 64 | GetMotionHistorySize(), | 65 | GetMotionHistorySize(), |
| 65 | 2); | 66 | 2); |
| 67 | #elif GET_ABI_MAJOR(ABI_XINPUT_VERSION) < 7 | ||
| 68 | InitPointerDeviceStruct((DevicePtr)dev, | ||
| 69 | btmap, DIM_BUTTON, | ||
| 70 | pointer_control, | ||
| 71 | GetMotionHistorySize(), | ||
| 72 | 2); | ||
| 73 | #else | ||
| 74 | #error "Unsupported ABI_XINPUT_VERSION" | ||
| 75 | #endif | ||
| 66 | 76 | ||
| 67 | xf86InitValuatorAxisStruct(dev, 0, | 77 | xf86InitValuatorAxisStruct(dev, 0, |
| 68 | mt->caps.abs_position_x.minimum, | 78 | mt->caps.abs_position_x.minimum, |
