mirror of
https://git.freebsd.org/ports.git
synced 2025-04-29 18:16:48 -04:00
12 lines
487 B
C++
12 lines
487 B
C++
--- 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();
|