mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2025-12-22 15:23:01 +01:00
Save screenshots when PrintScreen is pressed
This commit is contained in:
@@ -29,6 +29,7 @@
|
|||||||
#include "config.h"
|
#include "config.h"
|
||||||
#include "gfx.h"
|
#include "gfx.h"
|
||||||
#include "osinterface.h"
|
#include "osinterface.h"
|
||||||
|
#include "screenshot.h"
|
||||||
#include "window.h"
|
#include "window.h"
|
||||||
#include "rct2.h"
|
#include "rct2.h"
|
||||||
#include "cursors.h"
|
#include "cursors.h"
|
||||||
@@ -387,6 +388,12 @@ void osinterface_process_messages()
|
|||||||
gKeysPressed[e.key.keysym.scancode] = 1;
|
gKeysPressed[e.key.keysym.scancode] = 1;
|
||||||
if (e.key.keysym.sym == SDLK_RETURN && e.key.keysym.mod & KMOD_ALT)
|
if (e.key.keysym.sym == SDLK_RETURN && e.key.keysym.mod & KMOD_ALT)
|
||||||
osinterface_set_fullscreen_mode(!gGeneral_config.fullscreen_mode);
|
osinterface_set_fullscreen_mode(!gGeneral_config.fullscreen_mode);
|
||||||
|
if (e.key.keysym.sym == SDLK_PRINTSCREEN){
|
||||||
|
RCT2_GLOBAL(RCT2_ADDRESS_SCREENSHOT_COUNTDOWN, sint8) = 1;
|
||||||
|
//this function is normally called only in-game (in game_update)
|
||||||
|
//calling it here will save screenshots even while in main menu
|
||||||
|
screenshot_check();
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user