Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-ports-kde
Path: blob/main/emulators/ares/files/extra-patch-desktop-ui_input_hotkeys.cpp
16462 views
1
--- desktop-ui/input/hotkeys.cpp.orig 2024-11-22 20:50:39 UTC
2
+++ desktop-ui/input/hotkeys.cpp
3
@@ -149,6 +149,9 @@ auto InputManager::pollHotkeys() -> void {
4
}
5
6
for(auto& hotkey : hotkeys) {
7
+ if(emulator && !hotkey.name.equals("Pause Emulation") && !program.paused) {
8
+ continue;
9
+ }
10
auto state = hotkey.value();
11
if(hotkey.state == 0 && state == 1 && hotkey.press) hotkey.press();
12
if(hotkey.state == 1 && state == 0 && hotkey.release) hotkey.release();
13
14