mirror of
https://github.com/yawut/SDL.git
synced 2026-09-25 09:55:41 -05:00
Fixed bug #50
Using ctrl-alt-fn for flipping instead of alt-fn may help a few games that actually use that key combination. [Note: This is also consistent with X11 on the Linux console]
This commit is contained in:
@@ -922,7 +922,7 @@ static void handle_keyboard(_THIS)
|
||||
pressed = SDL_PRESSED;
|
||||
}
|
||||
TranslateKey(scancode, &keysym);
|
||||
/* Handle Alt-FN for vt switch */
|
||||
/* Handle Ctrl-Alt-FN for vt switch */
|
||||
switch (keysym.sym) {
|
||||
case SDLK_F1:
|
||||
case SDLK_F2:
|
||||
@@ -936,7 +936,8 @@ static void handle_keyboard(_THIS)
|
||||
case SDLK_F10:
|
||||
case SDLK_F11:
|
||||
case SDLK_F12:
|
||||
if ( SDL_GetModState() & KMOD_ALT ) {
|
||||
if ( (SDL_GetModState() & KMOD_CTRL) &&
|
||||
(SDL_GetModState() & KMOD_ALT) ) {
|
||||
if ( pressed ) {
|
||||
switch_vt(this, (keysym.sym-SDLK_F1)+1);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user