summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Hutterer <peter@cs.unisa.edu.au>2008-05-26 22:07:38 +0930
committerPeter Hutterer <peter@cs.unisa.edu.au>2008-05-27 11:51:37 +0930
commite8620e98b8dce2e5dfe6f24fedc8b3942927bff1 (patch)
tree82e20e180c4800be95f9996d6024221df1a1abd6
parent95676d89c7954cc5550ed386b784b470034320cc (diff)
Check for XINPUT ABI 3.
-rw-r--r--src/xf86Fpit.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/xf86Fpit.c b/src/xf86Fpit.c
index 5b1d060..20be86a 100644
--- a/src/xf86Fpit.c
+++ b/src/xf86Fpit.c
@@ -434,7 +434,11 @@ static Bool xf86FpitControl(DeviceIntPtr dev, int mode)
ErrorF("Unable to allocate PtrFeedBackClassDeviceStruct\n");
}
- if (InitValuatorClassDeviceStruct(dev, 2, xf86GetMotionEvents, local->history_size, Absolute) == FALSE) {
+ if (InitValuatorClassDeviceStruct(dev, 2,
+#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) < 3
+ xf86GetMotionEvents,
+#endif
+ local->history_size, Absolute) == FALSE) {
ErrorF("Unable to allocate Fpit touchscreen ValuatorClassDeviceStruct\n");
return !Success;
}