From 005c5dcce308ce624d950738f71a2a855dfcb080 Mon Sep 17 00:00:00 2001 From: dakkar Date: Sat, 5 Feb 2011 12:53:25 +0000 Subject: code-remap for 2.6.0 --- src/evdev.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/evdev.h') diff --git a/src/evdev.h b/src/evdev.h index f640fdd..82079a9 100644 --- a/src/evdev.h +++ b/src/evdev.h @@ -115,6 +115,13 @@ 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? */ @@ -177,6 +184,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