Mercurial > sdl-ios-xcode
comparison src/video/x11/SDL_x11events.c @ 805:df1a3218b468
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.
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Tue, 10 Feb 2004 15:39:15 +0000 |
parents | b8d311d90021 |
children | 787b8d2c23e4 |
comparison
equal
deleted
inserted
replaced
804:b2fda076b02e | 805:df1a3218b468 |
---|---|
512 ODD_keymap[i] = SDLK_UNKNOWN; | 512 ODD_keymap[i] = SDLK_UNKNOWN; |
513 | 513 |
514 #ifdef XK_dead_circumflex | 514 #ifdef XK_dead_circumflex |
515 /* These X keysyms have 0xFE as the high byte */ | 515 /* These X keysyms have 0xFE as the high byte */ |
516 ODD_keymap[XK_dead_circumflex&0xFF] = SDLK_CARET; | 516 ODD_keymap[XK_dead_circumflex&0xFF] = SDLK_CARET; |
517 #endif | |
518 #ifdef XK_ISO_Level3_Shift | |
519 ODD_keymap[XK_ISO_Level3_Shift&0xFF] = SDLK_MODE; /* "Alt Gr" key */ | |
517 #endif | 520 #endif |
518 | 521 |
519 /* Map the miscellaneous keys */ | 522 /* Map the miscellaneous keys */ |
520 for ( i=0; i<SDL_TABLESIZE(MISC_keymap); ++i ) | 523 for ( i=0; i<SDL_TABLESIZE(MISC_keymap); ++i ) |
521 MISC_keymap[i] = SDLK_UNKNOWN; | 524 MISC_keymap[i] = SDLK_UNKNOWN; |