mirror of
https://github.com/TombEngine/TombEngine.git
synced 2025-04-28 15:57:59 +03:00
Add F12 as alternative to PrtSc for screenshots
This commit is contained in:
parent
806c052ff5
commit
60b9055d0a
2 changed files with 3 additions and 2 deletions
|
@ -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.
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue