From 8bcc6d22889cc40c6b7d1582f87d4b2a816167ab Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Tue, 28 Aug 2007 17:31:54 -0700 Subject: [PATCH] Make compatible with new input ABI --- src/acecad.c | 8 ++++++++ 1 file changed, 8 insertions(+) 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; -- 2.32.0.93.g670b81a890