summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@sun.com>2007-08-28 17:31:54 -0700
committerAlan Coopersmith <alan.coopersmith@sun.com>2007-08-28 17:31:54 -0700
commit8bcc6d22889cc40c6b7d1582f87d4b2a816167ab (patch)
tree40f126c6a8c1ff6bf78d2b25d9fcb35a50088c24 /src
parent171d4c8dc6136aa8c14aedd0ee107d6ba957de04 (diff)
Make compatible with new input ABI
Diffstat (limited to 'src')
-rw-r--r--src/acecad.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/acecad.c b/src/acecad.c
index ec5f83e..9b14e48 100644
--- a/src/acecad.c
+++ b/src/acecad.c
@@ -70,6 +70,12 @@
#endif
#endif
+/* Previously found in xf86Xinput.h */
+#ifdef DBG
+#undef DBG
+#endif
+#define DBG(lvl, f) {if ((lvl) <= xf86GetVerbosity()) f;}
+
/*****************************************************************************
* Local Headers
****************************************************************************/
@@ -349,7 +355,9 @@ AceCadPreInit(InputDriverPtr drv, IDevPtr dev, int flags)
local->name = dev->identifier;
local->type_name = "ACECAD Tablet";
local->flags = XI86_POINTER_CAPABLE | XI86_SEND_DRAG_EVENTS;
+#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) == 0
local->motion_history_proc = xf86GetMotionEvents;
+#endif
local->control_proc = NULL;
local->close_proc = CloseProc;
local->switch_mode = NULL;