diff --git a/CHANGELOG.md b/CHANGELOG.md index 85a365f08..4917c3c69 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -49,6 +49,7 @@ TombEngine releases are located in this repository (alongside with Tomb Editor): * Added option to enable or disable menu option looping. * Menu scrolling using held inputs will stop at the last option until a new input is made. * Added the ability to display "Lara's Home" entry in the main menu. +* Added F12 as alternative to PrtSc for screenshots. ### Lua API changes * Added Inventory.GetUsedItem(), Inventory.SetUsedItem() and Inventory.ClearUsedItem() functions. diff --git a/TombEngine/Specific/Input/Input.cpp b/TombEngine/Specific/Input/Input.cpp index 80b8cd0b6..1365e4fc7 100644 --- a/TombEngine/Specific/Input/Input.cpp +++ b/TombEngine/Specific/Input/Input.cpp @@ -632,9 +632,9 @@ namespace TEN::Input { // Save screenshot. static bool dbScreenshot = true; - if (KeyMap[KC_SYSRQ] && dbScreenshot) + if ((KeyMap[KC_SYSRQ] || KeyMap[KC_F12]) && dbScreenshot) g_Renderer.SaveScreenshot(); - dbScreenshot = !KeyMap[KC_SYSRQ]; + dbScreenshot = !(KeyMap[KC_SYSRQ] || KeyMap[KC_F12]); // Toggle fullscreen. static bool dbFullscreen = true;