aboutsummaryrefslogtreecommitdiffstats
path: root/src/multitouch.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/multitouch.c')
-rw-r--r--src/multitouch.c10
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)
}
xf86CloseSerial(local->fd);
+#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) < 3
InitPointerDeviceStruct((DevicePtr)dev,
btmap, DIM_BUTTON,
GetMotionHistory,
pointer_control,
GetMotionHistorySize(),
2);
+#elif GET_ABI_MAJOR(ABI_XINPUT_VERSION) < 7
+ InitPointerDeviceStruct((DevicePtr)dev,
+ btmap, DIM_BUTTON,
+ pointer_control,
+ GetMotionHistorySize(),
+ 2);
+#else
+#error "Unsupported ABI_XINPUT_VERSION"
+#endif
xf86InitValuatorAxisStruct(dev, 0,
mt->caps.abs_position_x.minimum,