mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-06-10 18:05:47 -04:00
Android: Add 'Open Pause Menu' hotkey
This commit is contained in:
@ -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"),
|
||||
|
@ -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();
|
||||
|
||||
|
Reference in New Issue
Block a user