equal
deleted
inserted
replaced
9 #include "../functions.h" |
9 #include "../functions.h" |
10 #include "../gfx.h" |
10 #include "../gfx.h" |
11 #include "../macros.h" |
11 #include "../macros.h" |
12 #include "../sdl.h" |
12 #include "../sdl.h" |
13 #include "../window.h" |
13 #include "../window.h" |
14 #include "../network.h" |
14 #include "../network/network.h" |
15 #include "../variables.h" |
15 #include "../variables.h" |
16 #include "sdl_v.h" |
16 #include "sdl_v.h" |
17 #include <SDL.h> |
17 #include <SDL.h> |
18 |
18 |
19 static SDL_Surface *_sdl_screen; |
19 static SDL_Surface *_sdl_screen; |
438 mod = SDL_CALL SDL_GetModState(); |
438 mod = SDL_CALL SDL_GetModState(); |
439 keys = SDL_CALL SDL_GetKeyState(&numkeys); |
439 keys = SDL_CALL SDL_GetKeyState(&numkeys); |
440 #if defined(_DEBUG) |
440 #if defined(_DEBUG) |
441 if (_shift_pressed) |
441 if (_shift_pressed) |
442 #else |
442 #else |
443 if (keys[SDLK_TAB]) |
443 /* Speedup when pressing tab, except when using ALT+TAB |
|
444 * to switch to another application */ |
|
445 if (keys[SDLK_TAB] && (mod & KMOD_ALT) == 0) |
444 #endif |
446 #endif |
445 { |
447 { |
446 if (!_networking && _game_mode != GM_MENU) _fast_forward |= 2; |
448 if (!_networking && _game_mode != GM_MENU) _fast_forward |= 2; |
447 } else if (_fast_forward & 2) { |
449 } else if (_fast_forward & 2) { |
448 _fast_forward = 0; |
450 _fast_forward = 0; |