summaryrefslogtreecommitdiff
path: root/src/evdev.h
diff options
context:
space:
mode:
authorChase Douglas <chase.douglas@canonical.com>2010-11-08 14:35:02 -0500
committerPeter Hutterer <peter.hutterer@who-t.net>2011-11-11 15:50:36 +1000
commitc9a2b4e9ce9b15e57241184df78c72ec8f6a4705 (patch)
treec635d1f2989721a022eb1fa9e7677078c5b3cb29 /src/evdev.h
parente18abd0049421a98e61c15c2d56cfe2821cf4739 (diff)
Use MTDev for multitouch devices
MTDev translates all multitouch devices to the slotted evdev protocol. This provides a clean and uniform interface and reduces message handling inside the input module and X. Signed-off-by: Chase Douglas <chase.douglas@canonical.com>
Diffstat (limited to 'src/evdev.h')
-rw-r--r--src/evdev.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/evdev.h b/src/evdev.h
index 6e3b850..c588b5d 100644
--- a/src/evdev.h
+++ b/src/evdev.h
@@ -39,6 +39,10 @@
#include <xf86_OSproc.h>
#include <xkbstr.h>
+#ifdef MULTITOUCH
+#include <mtdev.h>
+#endif
+
#ifndef EV_CNT /* linux 2.6.23 kernels and earlier lack _CNT defines */
#define EV_CNT (EV_MAX+1)
#endif
@@ -142,6 +146,7 @@ typedef struct {
int cur_slot;
BOOL close_slot;
BOOL open_slot;
+ struct mtdev *mtdev;
#endif
int flags;