Android: Add 'Open Pause Menu' hotkey

This commit is contained in:
Connor McLaughlin
2021-01-13 18:54:37 +10:00
parent 60232c390a
commit 37f9f118c4
5 changed files with 35 additions and 4 deletions

View File

@ -77,10 +77,7 @@ bool CommonHostInterface::Initialize()
m_save_state_selector_ui = std::make_unique<FrontendCommon::SaveStateSelectorUI>(this);
RegisterGeneralHotkeys();
RegisterGraphicsHotkeys();
RegisterSaveStateHotkeys();
RegisterAudioHotkeys();
RegisterHotkeys();
UpdateControllerInterface();
return true;
@ -1462,6 +1459,14 @@ bool CommonHostInterface::AddRumbleToInputMap(const std::string& binding, u32 co
return false;
}
void CommonHostInterface::RegisterHotkeys()
{
RegisterGeneralHotkeys();
RegisterGraphicsHotkeys();
RegisterSaveStateHotkeys();
RegisterAudioHotkeys();
}
void CommonHostInterface::RegisterGeneralHotkeys()
{
RegisterHotkey(StaticString(TRANSLATABLE("Hotkeys", "General")), StaticString("FastForward"),

View File

@ -225,6 +225,9 @@ protected:
/// Request the frontend to exit.
virtual void RequestExit() = 0;
/// Registers frontend-specific hotkeys.
virtual void RegisterHotkeys();
/// Executes per-frame tasks such as controller polling.
virtual void PollAndUpdate();