From 43ce27aab2d990e9a4f54d2050b851bd2da01875 Mon Sep 17 00:00:00 2001 From: Henrik Rydberg Date: Thu, 16 Feb 2012 16:25:30 +0100 Subject: 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 --- include/mtdev.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include/mtdev.h') 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" { #define ABS_MT_DISTANCE 0x3b /* Contact hover distance */ #endif +/* includes available in 3.4 */ +#ifndef EVIOCGMTSLOTS +#define EVIOCGMTSLOTS(len) _IOC(_IOC_READ, 'E', 0x0a, len) +#endif + #define MT_ID_NULL (-1) #define MT_ID_MIN 0 #define MT_ID_MAX 65535 -- cgit v1.2.3