summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorHenrik Rydberg <rydberg@euromail.se>2012-02-16 16:25:30 +0100
committerHenrik Rydberg <rydberg@euromail.se>2012-02-16 16:33:53 +0100
commit43ce27aab2d990e9a4f54d2050b851bd2da01875 (patch)
treede5329399fc171d2622f8a27b9aa3ca007b1ce4c /include
parent3ec66c3b21e45d6529567f5144ba24dcc4645591 (diff)
Add support for kernel MT slot state retrieval
From kernel 3.4, extraction of the MT slot state is supported via the EVIOGMTSLOTS ioctl. This patch initializes the slots using that information. Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
Diffstat (limited to 'include')
-rw-r--r--include/mtdev.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/mtdev.h b/include/mtdev.h
index ba682c5..33ea29c 100644
--- a/include/mtdev.h
+++ b/include/mtdev.h
@@ -68,6 +68,11 @@ extern "C" {
68#define ABS_MT_DISTANCE 0x3b /* Contact hover distance */ 68#define ABS_MT_DISTANCE 0x3b /* Contact hover distance */
69#endif 69#endif
70 70
71/* includes available in 3.4 */
72#ifndef EVIOCGMTSLOTS
73#define EVIOCGMTSLOTS(len) _IOC(_IOC_READ, 'E', 0x0a, len)
74#endif
75
71#define MT_ID_NULL (-1) 76#define MT_ID_NULL (-1)
72#define MT_ID_MIN 0 77#define MT_ID_MIN 0
73#define MT_ID_MAX 65535 78#define MT_ID_MAX 65535