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
committerGianni Ceccarelli <gianni.ceccarelli@net-a-porter.com>2014-04-09 10:13:52 +0100
commit1ac18ba90dc4c6f8a80e3e38269145eb2d19d095 (patch)
tree8a5a947fab4cac22bcdc4b6b1c0f8a6de396892a /src/evdev.h
parentevdev 2.8.2 (diff)
downloadxf86-input-evdev-code-remap-2.8.2.tar.gz
xf86-input-evdev-code-remap-2.8.2.tar.bz2
xf86-input-evdev-code-remap-2.8.2.zip
code-remap for 2.8.2code-remap-2.8.2
Diffstat (limited to 'src/evdev.h')
-rw-r--r--src/evdev.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/evdev.h b/src/evdev.h
index 4742b43..a74a08a 100644
--- a/src/evdev.h
+++ b/src/evdev.h
@@ -150,6 +150,13 @@ typedef struct {
} EventQueueRec, *EventQueuePtr;
typedef struct {
+ uint8_t cd[256];
+} EvdevKeyRemapSlice;
+typedef struct {
+ EvdevKeyRemapSlice* sl[256];
+} EvdevKeyRemap, *EvdevKeyRemapPtr;
+
+typedef struct {
unsigned short id_vendor;
unsigned short id_product;
@@ -230,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;