From c678301cfe094fc279c34fb5f700fc1490844e6e Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Tue, 10 Feb 2004 15:39:15 +0000 Subject: [PATCH] Date: Wed, 04 Feb 2004 13:51:56 +0100 From: Jens Leuschner Subject: Small patch for libSDL In newer XFree86 releases in the German keyboard the "AltGr"-Key no longer produces the keysym "Mode_switch", instead it produces "ISO_Level3_Shift". I have created a small patch against SDL-1.2.6 (which cleanly applies to the current CVS-SDL too) that makes SDL recognize ISO_Level3_Shift as AltGR key. --- src/video/x11/SDL_x11events.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/video/x11/SDL_x11events.c b/src/video/x11/SDL_x11events.c index ff1ae3f6a..9301f5f19 100644 --- a/src/video/x11/SDL_x11events.c +++ b/src/video/x11/SDL_x11events.c @@ -515,6 +515,9 @@ void X11_InitKeymap(void) /* These X keysyms have 0xFE as the high byte */ ODD_keymap[XK_dead_circumflex&0xFF] = SDLK_CARET; #endif +#ifdef XK_ISO_Level3_Shift + ODD_keymap[XK_ISO_Level3_Shift&0xFF] = SDLK_MODE; /* "Alt Gr" key */ +#endif /* Map the miscellaneous keys */ for ( i=0; i