diff options
author | Gianni Ceccarelli <gianni.ceccarelli@net-a-porter.com> | 2012-04-03 12:29:03 +0100 |
---|---|---|
committer | dakkar <dakkar@thenautilus.net> | 2015-12-15 15:50:34 +0000 |
commit | 4def94b4df539d98c4ea642bb53d73ce2f55cf5d (patch) | |
tree | 82987c7c4dfbddb6bd52fad1c58bf2e4462def9f /src/evdev.h | |
parent | evdev 2.9.2 (diff) | |
download | xf86-input-evdev-code-remap-2.9.2.tar.gz xf86-input-evdev-code-remap-2.9.2.tar.bz2 xf86-input-evdev-code-remap-2.9.2.zip |
code-remap for 2.9.0code-remap-2.9.2
Thanks to Tristan King <tristan.king@gmail.com> for reminding me to do
it and checking that it works
Diffstat (limited to 'src/evdev.h')
-rw-r--r-- | src/evdev.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/evdev.h b/src/evdev.h index 2a010e6..f7c8d1e 100644 --- a/src/evdev.h +++ b/src/evdev.h @@ -152,6 +152,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; @@ -239,6 +247,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; |