summaryrefslogtreecommitdiff
path: root/src/xf86Elo.c
diff options
context:
space:
mode:
authorPeter Hutterer <peter@cs.unisa.edu.au>2008-05-26 22:06:55 +0930
committerPeter Hutterer <peter@cs.unisa.edu.au>2008-05-27 11:50:35 +0930
commit5b62ac1efec42ad725733d8acaf1c2450224a9d0 (patch)
tree8bca04420176c636a469b993883859797e053446 /src/xf86Elo.c
parent174a043bbad20de2959cc08736f894ef56536ece (diff)
Check for XINPUT ABI 3.
Diffstat (limited to 'src/xf86Elo.c')
-rw-r--r--src/xf86Elo.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/xf86Elo.c b/src/xf86Elo.c
index 2a76849..c107927 100644
--- a/src/xf86Elo.c
+++ b/src/xf86Elo.c
@@ -1340,7 +1340,10 @@ xf86EloControl(DeviceIntPtr dev,
* max and min values scaled from the approximate size of the
* screen to fit one meter.
*/
- if (InitValuatorClassDeviceStruct(dev, 2, xf86GetMotionEvents,
+ if (InitValuatorClassDeviceStruct(dev, 2,
+#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) < 3
+ xf86GetMotionEvents,
+#endif
local->history_size, Absolute) == FALSE) {
ErrorF("Unable to allocate Elographics touchscreen ValuatorClassDeviceStruct\n");
return !Success;