aboutsummaryrefslogtreecommitdiff
path: root/src/evdev.h
diff options
context:
space:
mode:
authorGianni Ceccarelli <gianni.ceccarelli@net-a-porter.com>2012-04-03 12:29:03 +0100
committerdakkar <dakkar@thenautilus.net>2016-10-15 11:52:41 +0100
commit25cb0f8b0f67146dbdaf9dd417e8c9530ffe3b90 (patch)
treec6c2c79483c4c1a6dd7dbd66d0cd42b1fdd7ad22 /src/evdev.h
parentevdev 2.10.3 (diff)
downloadxf86-input-evdev-code-remap-2.10.3.tar.gz
xf86-input-evdev-code-remap-2.10.3.tar.bz2
xf86-input-evdev-code-remap-2.10.3.zip
code-remap for 2.10.3code-remap-2.10.3
Diffstat (limited to 'src/evdev.h')
-rw-r--r--src/evdev.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/evdev.h b/src/evdev.h
index 4d44d2b..64e73ed 100644
--- a/src/evdev.h
+++ b/src/evdev.h
@@ -142,6 +142,14 @@ typedef struct {
} EventQueueRec, *EventQueuePtr;
typedef struct {
+ uint8_t cd[256];
+} EvdevKeyRemapSlice;
+
+typedef struct {
+ EvdevKeyRemapSlice* sl[256];
+} EvdevKeyRemap, *EvdevKeyRemapPtr;
+
+typedef struct {
struct libevdev *dev;
char *device;
@@ -229,6 +237,8 @@ typedef struct {
unsigned char btnmap[32]; /* config-file specified button mapping */
+ EvdevKeyRemapPtr keyremap;
+
int reopen_attempts; /* max attempts to re-open after read failure */
int reopen_left; /* number of attempts left to re-open the device */
OsTimerPtr reopen_timer;