summaryrefslogtreecommitdiff
path: root/src/elo.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/elo.c')
-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");