Date: Wed, 04 Feb 2004 13:51:56 +0100
authorSam Lantinga <slouken@libsdl.org>
Tue, 10 Feb 2004 15:39:15 +0000
changeset 805df1a3218b468
parent 804 b2fda076b02e
child 806 42f4a3abf70b
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
     1.1 --- a/src/video/x11/SDL_x11events.c	Tue Feb 10 15:31:35 2004 +0000
     1.2 +++ b/src/video/x11/SDL_x11events.c	Tue Feb 10 15:39:15 2004 +0000
     1.3 @@ -515,6 +515,9 @@
     1.4  	/* These X keysyms have 0xFE as the high byte */
     1.5  	ODD_keymap[XK_dead_circumflex&0xFF] = SDLK_CARET;
     1.6  #endif
     1.7 +#ifdef XK_ISO_Level3_Shift
     1.8 +	ODD_keymap[XK_ISO_Level3_Shift&0xFF] = SDLK_MODE; /* "Alt Gr" key */
     1.9 +#endif
    1.10  
    1.11  	/* Map the miscellaneous keys */
    1.12  	for ( i=0; i<SDL_TABLESIZE(MISC_keymap); ++i )