mirror of
https://github.com/LostArtefacts/TRX.git
synced 2025-05-01 06:08:00 +03:00
s/fmv: support screenshots during fmvs
This commit is contained in:
parent
53f9fd4f1a
commit
31eacbe52d
1 changed files with 11 additions and 4 deletions
|
@ -25,12 +25,13 @@
|
||||||
#include "game/gamebuf.h"
|
#include "game/gamebuf.h"
|
||||||
#include "game/input.h"
|
#include "game/input.h"
|
||||||
#include "game/output.h"
|
#include "game/output.h"
|
||||||
|
#include "game/shell.h"
|
||||||
#include "game/viewport.h"
|
#include "game/viewport.h"
|
||||||
#include "global/vars_platform.h"
|
#include "global/vars_platform.h"
|
||||||
#include "log.h"
|
#include "log.h"
|
||||||
#include "specific/s_audio.h"
|
#include "specific/s_audio.h"
|
||||||
#include "specific/s_shell.h"
|
|
||||||
#include "specific/s_output.h"
|
#include "specific/s_output.h"
|
||||||
|
#include "specific/s_shell.h"
|
||||||
|
|
||||||
#include "ddraw/Interop.hpp"
|
#include "ddraw/Interop.hpp"
|
||||||
|
|
||||||
|
@ -2191,16 +2192,22 @@ static void S_FMV_EventLoop(VideoState *is)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case SDL_KEYUP:
|
case SDL_KEYUP:
|
||||||
|
if (event.key.keysym.sym == SDLK_PRINTSCREEN) {
|
||||||
|
Shell_MakeScreenshot();
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
if (event.key.keysym.sym == SDLK_ESCAPE) {
|
if (event.key.keysym.sym == SDLK_ESCAPE) {
|
||||||
is->abort_request = true;
|
is->abort_request = true;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
const Uint8 *keyboard_state = SDL_GetKeyboardState(NULL);
|
if (event.key.keysym.sym == SDLK_RETURN
|
||||||
if (keyboard_state[SDL_SCANCODE_LALT]
|
&& event.key.keysym.mod & KMOD_LALT) {
|
||||||
&& keyboard_state[SDL_SCANCODE_RETURN]) {
|
|
||||||
S_Shell_ToggleFullscreen();
|
S_Shell_ToggleFullscreen();
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case SDL_WINDOWEVENT:
|
case SDL_WINDOWEVENT:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue