blob: 076049e6773b2560c4f11929a178a0c0e7a3f285 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
|
--- desktop-ui/input/hotkeys.cpp.orig 2024-11-22 20:50:39 UTC
+++ desktop-ui/input/hotkeys.cpp
@@ -149,6 +149,9 @@ auto InputManager::pollHotkeys() -> void {
}
for(auto& hotkey : hotkeys) {
+ if(emulator && !hotkey.name.equals("Pause Emulation") && !program.paused) {
+ continue;
+ }
auto state = hotkey.value();
if(hotkey.state == 0 && state == 1 && hotkey.press) hotkey.press();
if(hotkey.state == 1 && state == 0 && hotkey.release) hotkey.release();
|