aboutsummaryrefslogtreecommitdiff
path: root/src/evdev.h
diff options
context:
space:
mode:
authorChase Douglas <chase.douglas@canonical.com>2011-01-22 16:40:48 -0500
committerPeter Hutterer <peter.hutterer@who-t.net>2011-01-24 14:12:39 +1000
commit8bc4be3048754b9c751cd98f5a5b46cf59a56f3a (patch)
tree37dcc1ebf7f05cada6f0d042e9e164a7ed5571bf /src/evdev.h
parentevdev 2.6.0 (diff)
downloadxf86-input-evdev-8bc4be3048754b9c751cd98f5a5b46cf59a56f3a.tar.gz
xf86-input-evdev-8bc4be3048754b9c751cd98f5a5b46cf59a56f3a.tar.bz2
xf86-input-evdev-8bc4be3048754b9c751cd98f5a5b46cf59a56f3a.zip
Remove support for X input ABI < 12.2
Signed-off-by: Chase Douglas <chase.douglas@canonical.com> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'src/evdev.h')
-rw-r--r--src/evdev.h25
1 files changed, 4 insertions, 21 deletions
diff --git a/src/evdev.h b/src/evdev.h
index f640fdd..d5b0f07 100644
--- a/src/evdev.h
+++ b/src/evdev.h
@@ -39,6 +39,10 @@
#include <xf86_OSproc.h>
#include <xkbstr.h>
+#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) * 100 + GET_ABI_MINOR(ABI_XINPUT_VERSION) < 1202
+#error "Need X server input ABI version 12.2 or greater"
+#endif
+
#ifndef EV_CNT /* linux 2.6.23 kernels and earlier lack _CNT defines */
#define EV_CNT (EV_MAX+1)
#endif
@@ -72,26 +76,10 @@
#define EVDEV_UNIGNORE_RELATIVE (1 << 10) /* explicitly unignore rel axes */
#define EVDEV_RELATIVE_MODE (1 << 11) /* Force relative events for devices with absolute axes */
-#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) >= 3
-#define HAVE_PROPERTIES 1
-#endif
-
#ifndef MAX_VALUATORS
#define MAX_VALUATORS 36
#endif
-
-#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) < 5
-typedef struct {
- char *rules;
- char *model;
- char *layout;
- char *variant;
- char *options;
-} XkbRMLVOSet;
-#endif
-
-
#define LONG_BITS (sizeof(long) * 8)
/* Number of longs needed to hold the given number of bits */
@@ -137,9 +125,6 @@ typedef struct {
unsigned int abs_prox; /* valuators posted while out of prox? */
/* XKB stuff has to be per-device rather than per-driver */
-#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) < 5
- XkbComponentNamesRec xkbnames;
-#endif
XkbRMLVOSet rmlvo;
/* Middle mouse button emulation */
@@ -228,9 +213,7 @@ BOOL EvdevWheelEmuFilterMotion(InputInfoPtr pInfo, struct input_event *pEv);
void EvdevDragLockPreInit(InputInfoPtr pInfo);
BOOL EvdevDragLockFilterEvent(InputInfoPtr pInfo, unsigned int button, int value);
-#ifdef HAVE_PROPERTIES
void EvdevMBEmuInitProperty(DeviceIntPtr);
void EvdevWheelEmuInitProperty(DeviceIntPtr);
void EvdevDragLockInitProperty(DeviceIntPtr);
#endif
-#endif