summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPeter Hutterer <peter@cs.unisa.edu.au>2008-05-26 22:06:23 +0930
committerPeter Hutterer <peter@cs.unisa.edu.au>2008-05-27 11:49:35 +0930
commitcc77936174d60ae25aab137225190dc6d31eba92 (patch)
tree6b8044d1243d1d54a4e15368af6f7348bd0c3a41 /src
parent585245ac87ce421acd890f065dbcb187ed901c1a (diff)
Check for XINPUT ABI 3.
Diffstat (limited to 'src')
-rw-r--r--src/elo.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/elo.c b/src/elo.c
index 5ed67f0..8382313 100644
--- a/src/elo.c
+++ b/src/elo.c
@@ -309,7 +309,10 @@ DeviceInit( DeviceIntPtr dev )
* Device reports motions on 2 axes in absolute coordinates.
* Device may reports touch pressure on the 3rd axis.
*/
- if (InitValuatorClassDeviceStruct (dev, priv->axes, xf86GetMotionEvents,
+ if (InitValuatorClassDeviceStruct (dev, priv->axes,
+#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) < 3
+ xf86GetMotionEvents,
+#endif
local->history_size, Absolute) == FALSE)
{
ErrorF ("Unable to allocate Elographics touchscreen ValuatorClassDeviceStruct\n");