# HG changeset patch # User Sam Lantinga # Date 1147158335 0 # Node ID 15ae67aa6b4bc0ffe82e2f75012c3ecccfdcc34d # Parent 473abd216edb164b099c65be7e70e2595a81d1fa Fixed bug #201 Here's a patch for SDL_fbevents.c that makes SDL fbcon recognize both left Alt and right Alt (altgr). Without this, it's impossible to write a lot of characters on a standard fi-latin1 mapped keyboard, like "@£${[]}\|~". /Jonatan diff -r 473abd216edb -r 15ae67aa6b4b src/video/fbcon/SDL_fbevents.c --- a/src/video/fbcon/SDL_fbevents.c Tue May 09 06:44:47 2006 +0000 +++ b/src/video/fbcon/SDL_fbevents.c Tue May 09 07:05:35 2006 +0000 @@ -1115,6 +1115,12 @@ case SCANCODE_LEFTWIN: keymap[i] = SDLK_LSUPER; break; + case SCANCODE_LEFTALT: + keymap[i] = SDLK_LALT; + break; + case SCANCODE_RIGHTALT: + keymap[i] = SDLK_RALT; + break; case 127: keymap[i] = SDLK_MENU; break; @@ -1216,10 +1222,10 @@ if ( modstate & KMOD_CTRL ) { map |= (1<