From a45bcbf6997156ae45984f1eff31c511c24142d6 Mon Sep 17 00:00:00 2001 From: Gianni Ceccarelli Date: Tue, 3 Apr 2012 12:29:03 +0100 Subject: code-remap for 2.9.0 Thanks to Tristan King for reminding me to do it and checking that it works --- src/evdev.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/evdev.h') diff --git a/src/evdev.h b/src/evdev.h index 520d017..9c67302 100644 --- a/src/evdev.h +++ b/src/evdev.h @@ -151,6 +151,14 @@ typedef struct { #endif } EventQueueRec, *EventQueuePtr; +typedef struct { + uint8_t cd[256]; +} EvdevKeyRemapSlice; + +typedef struct { + EvdevKeyRemapSlice* sl[256]; +} EvdevKeyRemap, *EvdevKeyRemapPtr; + typedef struct { struct libevdev *dev; @@ -236,6 +244,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; -- cgit v1.2.3