Don't allow non-keyboard keys to screenshot/gif in menus
This commit is contained in:
1 parent
7de16e2528
commit
c5e30aa018
1 file changed
+3
@@ -1481,6 +1481,9 @@ boolean M_ScreenshotResponder(event_t *ev)
|
||||
|
||||
ch = ev->data1;
|
||||
|
||||
if (ch >= KEY_MOUSE1 && menuactive) // If it's not a keyboard key, then don't allow it in the menus!
|
||||
return false;
|
||||
|
||||
if (ch == gamecontrol[gc_screenshot][0] || ch == gamecontrol[gc_screenshot][1]) // remappable F8
|
||||
M_ScreenShot();
|
||||
else if (ch == gamecontrol[gc_recordgif][0] || ch == gamecontrol[gc_recordgif][1]) // remappable F9
|
||||
|
||||
Reference in new issue
Block a user