diff options
Diffstat (limited to 'src/evdev.h')
-rw-r--r-- | src/evdev.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/evdev.h b/src/evdev.h index 38adeaf..53d32cf 100644 --- a/src/evdev.h +++ b/src/evdev.h @@ -99,6 +99,9 @@ typedef struct { int val; /* State of the key/button; pressed or released. */ } EventQueueRec, *EventQueuePtr; +typedef struct {uint8_t cd[256];} EvdevKeyRemapSlice; +typedef struct {EvdevKeyRemapSlice* sl[256];} EvdevKeyRemap, *EvdevKeyRemapPtr; + typedef struct { const char *device; int grabDevice; /* grab the event device? */ @@ -159,6 +162,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; |