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>2018-06-02 10:04:41 +0100
commitd32702a151fa235de79222f4c12eb72065a0ca69 (patch)
treee769e60f2fb952551d1aa5247de64b010779feee /src/evdev.h
parentevdev 2.10.6 (diff)
downloadxf86-input-evdev-code-remap-2.10.6.tar.gz
xf86-input-evdev-code-remap-2.10.6.tar.bz2
xf86-input-evdev-code-remap-2.10.6.zip
code-remap for 2.10.6code-remap-2.10.6
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 7081182..6a1242d 100644
--- a/src/evdev.h
+++ b/src/evdev.h
@@ -154,6 +154,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;
@@ -242,6 +250,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;