aboutsummaryrefslogtreecommitdiff
path: root/src/emuWheel.c
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@redhat.com>2008-09-04 18:22:56 +0930
committerPeter Hutterer <peter.hutterer@redhat.com>2008-09-04 18:22:56 +0930
commit4509ec1daf8a03b261c1fa8aa48b5def3f336aed (patch)
tree091ba3940419146578492cd6639000b951254283 /src/emuWheel.c
parentShut up "unused variable" compiler warnings. (diff)
downloadxf86-input-evdev-4509ec1daf8a03b261c1fa8aa48b5def3f336aed.tar.gz
xf86-input-evdev-4509ec1daf8a03b261c1fa8aa48b5def3f336aed.tar.bz2
xf86-input-evdev-4509ec1daf8a03b261c1fa8aa48b5def3f336aed.zip
Use HAVE_PROPERTIES define instead of GET_ABI_MAJOR for property compilation.
Diffstat (limited to 'src/emuWheel.c')
-rw-r--r--src/emuWheel.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/emuWheel.c b/src/emuWheel.c
index a436c49..e503aaa 100644
--- a/src/emuWheel.c
+++ b/src/emuWheel.c
@@ -43,7 +43,7 @@
#define WHEEL_NOT_CONFIGURED 0
-#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) >= 3
+#ifdef HAVE_PROPERTIES
static const char *propname_wheel_emu = "Wheel Emulation";
static const char *propname_wheel_xmap = "Wheel Emulation X Axis";
static const char *propname_wheel_ymap = "Wheel Emulation Y Axis";
@@ -316,7 +316,7 @@ EvdevWheelEmuPreInit(InputInfoPtr pInfo)
"EmulateWheelTimeout: %d\n",
pInfo->name, pEvdev->emulateWheel.button, inertia, timeout);
-#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) >= 3
+#ifdef HAVE_PROPERTIES
XIChangeDeviceProperty(pInfo->dev, prop_wheel_emu, XA_INTEGER, 8,
PropModeReplace, 1, &pEvdev->emulateWheel.enabled,
TRUE, FALSE, FALSE);
@@ -348,7 +348,7 @@ EvdevWheelEmuPreInit(InputInfoPtr pInfo)
#endif
}
-#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) >= 3
+#ifdef HAVE_PROPERTIES
void
EvdevWheelEmuInitProperty(DeviceIntPtr dev)
{