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