mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2025-02-18 20:05:39 +00:00
CommonHostInterface: Disable some hotkeys on Android
This commit is contained in:
parent
22bb64e7b0
commit
e464a8c332
|
@ -1452,7 +1452,7 @@ void CommonHostInterface::RegisterGeneralHotkeys()
|
||||||
2.0f);
|
2.0f);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
#ifndef ANDROID
|
||||||
RegisterHotkey(StaticString(TRANSLATABLE("Hotkeys", "General")), StaticString("ToggleFullscreen"),
|
RegisterHotkey(StaticString(TRANSLATABLE("Hotkeys", "General")), StaticString("ToggleFullscreen"),
|
||||||
StaticString(TRANSLATABLE("Hotkeys", "Toggle Fullscreen")), [this](bool pressed) {
|
StaticString(TRANSLATABLE("Hotkeys", "Toggle Fullscreen")), [this](bool pressed) {
|
||||||
if (pressed)
|
if (pressed)
|
||||||
|
@ -1496,6 +1496,13 @@ void CommonHostInterface::RegisterGeneralHotkeys()
|
||||||
PowerOffSystem();
|
PowerOffSystem();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
#else
|
||||||
|
RegisterHotkey(StaticString(TRANSLATABLE("Hotkeys", "General")), StaticString("TogglePatchCodes"),
|
||||||
|
StaticString(TRANSLATABLE("Hotkeys", "Toggle Patch Codes")), [this](bool pressed) {
|
||||||
|
if (pressed)
|
||||||
|
DoToggleCheats();
|
||||||
|
});
|
||||||
|
#endif
|
||||||
|
|
||||||
RegisterHotkey(StaticString(TRANSLATABLE("Hotkeys", "General")), StaticString("Reset"),
|
RegisterHotkey(StaticString(TRANSLATABLE("Hotkeys", "General")), StaticString("Reset"),
|
||||||
StaticString(TRANSLATABLE("Hotkeys", "Reset System")), [this](bool pressed) {
|
StaticString(TRANSLATABLE("Hotkeys", "Reset System")), [this](bool pressed) {
|
||||||
|
|
Loading…
Reference in a new issue