Add F12 as alternative to PrtSc for screenshots

This commit is contained in:
Sezz 2024-08-27 19:17:57 +10:00
parent 806c052ff5
commit 60b9055d0a
2 changed files with 3 additions and 2 deletions

View file

@ -49,6 +49,7 @@ TombEngine releases are located in this repository (alongside with Tomb Editor):
* Added option to enable or disable menu option looping. * 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. * 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 the ability to display "Lara's Home" entry in the main menu.
* Added F12 as alternative to PrtSc for screenshots.
### Lua API changes ### Lua API changes
* Added Inventory.GetUsedItem(), Inventory.SetUsedItem() and Inventory.ClearUsedItem() functions. * Added Inventory.GetUsedItem(), Inventory.SetUsedItem() and Inventory.ClearUsedItem() functions.

View file

@ -632,9 +632,9 @@ namespace TEN::Input
{ {
// Save screenshot. // Save screenshot.
static bool dbScreenshot = true; static bool dbScreenshot = true;
if (KeyMap[KC_SYSRQ] && dbScreenshot) if ((KeyMap[KC_SYSRQ] || KeyMap[KC_F12]) && dbScreenshot)
g_Renderer.SaveScreenshot(); g_Renderer.SaveScreenshot();
dbScreenshot = !KeyMap[KC_SYSRQ]; dbScreenshot = !(KeyMap[KC_SYSRQ] || KeyMap[KC_F12]);
// Toggle fullscreen. // Toggle fullscreen.
static bool dbFullscreen = true; static bool dbFullscreen = true;