diff options
author | Peter Hutterer <peter@cs.unisa.edu.au> | 2008-05-26 22:06:23 +0930 |
---|---|---|
committer | Peter Hutterer <peter@cs.unisa.edu.au> | 2008-05-27 11:49:35 +0930 |
commit | cc77936174d60ae25aab137225190dc6d31eba92 (patch) | |
tree | 6b8044d1243d1d54a4e15368af6f7348bd0c3a41 /src | |
parent | 585245ac87ce421acd890f065dbcb187ed901c1a (diff) |
Check for XINPUT ABI 3.
Diffstat (limited to 'src')
-rw-r--r-- | src/elo.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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"); |