diff options
Diffstat (limited to 'meta/recipes-graphics/libsdl/files/extra-keys.patch')
| -rw-r--r-- | meta/recipes-graphics/libsdl/files/extra-keys.patch | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/meta/recipes-graphics/libsdl/files/extra-keys.patch b/meta/recipes-graphics/libsdl/files/extra-keys.patch new file mode 100644 index 0000000000..f12f0c7efb --- /dev/null +++ b/meta/recipes-graphics/libsdl/files/extra-keys.patch | |||
| @@ -0,0 +1,53 @@ | |||
| 1 | diff -upr --exclude=configure --exclude=Makefile --exclude=Makefile.in libsdl1.2-1.2.4/include/SDL_keysym.h libsdl1.2-1.2.4-arm/include/SDL_keysym.h | ||
| 2 | --- libsdl1.2-1.2.4/include/SDL_keysym.h 2002-03-06 11:23:01.000000000 +0000 | ||
| 3 | +++ libsdl1.2-1.2.4-arm/include/SDL_keysym.h 2002-11-08 20:43:09.000000000 +0000 | ||
| 4 | @@ -286,6 +286,12 @@ typedef enum { | ||
| 5 | SDLK_EURO = 321, /* Some european keyboards */ | ||
| 6 | SDLK_UNDO = 322, /* Atari keyboard has Undo */ | ||
| 7 | |||
| 8 | + SDLK_RECORD = 322, | ||
| 9 | + SDLK_CALENDAR = 323, | ||
| 10 | + SDLK_TELEPHONE = 324, | ||
| 11 | + SDLK_MAIL = 325, | ||
| 12 | + SDLK_START = 326, | ||
| 13 | + | ||
| 14 | /* Add any other keys here */ | ||
| 15 | |||
| 16 | SDLK_LAST | ||
| 17 | diff -upr --exclude=configure --exclude=Makefile --exclude=Makefile.in libsdl1.2-1.2.4/src/video/x11/SDL_x11events.c libsdl1.2-1.2.4-arm/src/video/x11/SDL_x11events.c | ||
| 18 | --- libsdl1.2-1.2.4/src/video/x11/SDL_x11events.c 2002-03-06 11:23:08.000000000 +0000 | ||
| 19 | +++ libsdl1.2-1.2.4-arm/src/video/x11/SDL_x11events.c 2002-11-08 21:01:41.000000000 +0000 | ||
| 20 | @@ -34,6 +34,7 @@ static char rcsid = | ||
| 21 | #include <X11/Xlib.h> | ||
| 22 | #include <X11/Xutil.h> | ||
| 23 | #include <X11/keysym.h> | ||
| 24 | +#include <X11/XF86keysym.h> | ||
| 25 | #ifdef __SVR4 | ||
| 26 | #include <X11/Sunkeysym.h> | ||
| 27 | #endif | ||
| 28 | @@ -655,6 +656,25 @@ SDL_keysym *X11_TranslateKey(Display *di | ||
| 29 | case 0xFF: | ||
| 30 | keysym->sym = MISC_keymap[xsym&0xFF]; | ||
| 31 | break; | ||
| 32 | + case 0x1008ff: | ||
| 33 | + switch (xsym) { | ||
| 34 | + case XF86XK_AudioRecord: | ||
| 35 | + keysym->sym = SDLK_RECORD; | ||
| 36 | + break; | ||
| 37 | + case XF86XK_PowerDown: | ||
| 38 | + keysym->sym = SDLK_POWER; | ||
| 39 | + break; | ||
| 40 | + case XF86XK_Calendar: | ||
| 41 | + keysym->sym = SDLK_CALENDAR; | ||
| 42 | + break; | ||
| 43 | + case XF86XK_Mail: | ||
| 44 | + keysym->sym = SDLK_MAIL; | ||
| 45 | + break; | ||
| 46 | + case XF86XK_Start: | ||
| 47 | + keysym->sym = SDLK_START; | ||
| 48 | + break; | ||
| 49 | + } | ||
| 50 | + break; | ||
| 51 | default: | ||
| 52 | fprintf(stderr, | ||
| 53 | "X11: Unknown xsym, sym = 0x%04x\n", | ||
