aboutsummaryrefslogtreecommitdiff
path: root/src/evdev.h
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2015-03-11 13:22:19 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2015-03-11 15:02:11 +1000
commit2c9f4f0380dd5bb5966a6eee34c8e0ec0c98ed17 (patch)
tree87a03c87fca0ced2ba4082950163d465090d6370 /src/evdev.h
parentDrop evdev-specific XKB defaults (diff)
downloadxf86-input-evdev-2c9f4f0380dd5bb5966a6eee34c8e0ec0c98ed17.tar.gz
xf86-input-evdev-2c9f4f0380dd5bb5966a6eee34c8e0ec0c98ed17.tar.bz2
xf86-input-evdev-2c9f4f0380dd5bb5966a6eee34c8e0ec0c98ed17.zip
Require multitouch/smooth scrolling dependencies
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Diffstat (limited to 'src/evdev.h')
-rw-r--r--src/evdev.h16
1 files changed, 0 insertions, 16 deletions
diff --git a/src/evdev.h b/src/evdev.h
index 6e5bce9..4aa7652 100644
--- a/src/evdev.h
+++ b/src/evdev.h
@@ -43,9 +43,7 @@
#include <xf86_OSproc.h>
#include <xkbstr.h>
-#ifdef MULTITOUCH
#include <mtdev.h>
-#endif
#include <libevdev/libevdev.h>
@@ -65,10 +63,6 @@
#define LED_CNT (LED_MAX+1)
#endif
-#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) >= 14
-#define HAVE_SMOOTH_SCROLLING 1
-#endif
-
#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) < 18
#define LogMessageVerbSigSafe xf86MsgVerb
#endif
@@ -135,20 +129,14 @@ typedef struct {
EV_QUEUE_KEY, /* xf86PostKeyboardEvent() */
EV_QUEUE_BTN, /* xf86PostButtonEvent() */
EV_QUEUE_PROXIMITY, /* xf86PostProximityEvent() */
-#ifdef MULTITOUCH
EV_QUEUE_TOUCH, /*xf86PostTouchEvent() */
-#endif
} type;
union {
int key; /* May be either a key code or button number. */
-#ifdef MULTITOUCH
unsigned int touch; /* Touch ID */
-#endif
} detail;
int val; /* State of the key/button/touch; pressed or released. */
-#ifdef MULTITOUCH
ValuatorMask *touchMask;
-#endif
} EventQueueRec, *EventQueuePtr;
typedef struct {
@@ -172,9 +160,7 @@ typedef struct {
int dirty;
enum SlotState state;
} *slots;
-#ifdef MULTITOUCH
struct mtdev *mtdev;
-#endif
int flags;
int in_proximity; /* device in proximity */
@@ -259,10 +245,8 @@ typedef struct {
void EvdevQueueKbdEvent(InputInfoPtr pInfo, struct input_event *ev, int value);
void EvdevQueueButtonEvent(InputInfoPtr pInfo, int button, int value);
void EvdevQueueProximityEvent(InputInfoPtr pInfo, int value);
-#ifdef MULTITOUCH
void EvdevQueueTouchEvent(InputInfoPtr pInfo, unsigned int touch,
ValuatorMask *mask, uint16_t type);
-#endif
void EvdevPostButtonEvent(InputInfoPtr pInfo, int button, enum ButtonAction act);
void EvdevQueueButtonClicks(InputInfoPtr pInfo, int button, int count);
void EvdevPostRelativeMotionEvents(InputInfoPtr pInfo);