Split screenshot from main input handler

This enables the screenshot hotkeys in atlas.
This commit is contained in:
phosit
2025-04-17 12:17:19 +02:00
parent 464d40ab61
commit 596c0c2ddd
4 changed files with 47 additions and 27 deletions
-10
View File
@@ -221,16 +221,6 @@ static Input::Reaction MainInputHandler(const SDL_Event& ev)
QuitEngine(EXIT_SUCCESS);
return Input::Reaction::HANDLED;
}
else if (hotkey == "screenshot")
{
g_Renderer.MakeScreenShotOnNextFrame(CRenderer::ScreenShotType::DEFAULT);
return Input::Reaction::HANDLED;
}
else if (hotkey == "bigscreenshot")
{
g_Renderer.MakeScreenShotOnNextFrame(CRenderer::ScreenShotType::BIG);
return Input::Reaction::HANDLED;
}
else if (hotkey == "togglefullscreen")
{
g_VideoMode.ToggleFullscreen();