From e464a8c332135a7d427a42dc6469121042eb7a20 Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Wed, 30 Dec 2020 19:34:14 +1000 Subject: [PATCH] CommonHostInterface: Disable some hotkeys on Android --- src/frontend-common/common_host_interface.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/frontend-common/common_host_interface.cpp b/src/frontend-common/common_host_interface.cpp index c14371644..3416cecc0 100644 --- a/src/frontend-common/common_host_interface.cpp +++ b/src/frontend-common/common_host_interface.cpp @@ -1452,7 +1452,7 @@ void CommonHostInterface::RegisterGeneralHotkeys() 2.0f); } }); - +#ifndef ANDROID RegisterHotkey(StaticString(TRANSLATABLE("Hotkeys", "General")), StaticString("ToggleFullscreen"), StaticString(TRANSLATABLE("Hotkeys", "Toggle Fullscreen")), [this](bool pressed) { if (pressed) @@ -1496,6 +1496,13 @@ void CommonHostInterface::RegisterGeneralHotkeys() 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"), StaticString(TRANSLATABLE("Hotkeys", "Reset System")), [this](bool pressed) {