From d41e6dd28fc651c23d751f619145181d48bcece5 Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Thu, 27 Feb 2020 00:41:28 +1000 Subject: [PATCH] CommonHostInterface: Add some more default key bindings Also remove some unused code. --- src/frontend-common/common_host_interface.cpp | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/src/frontend-common/common_host_interface.cpp b/src/frontend-common/common_host_interface.cpp index f9680bf4c..ee4a5d6b0 100644 --- a/src/frontend-common/common_host_interface.cpp +++ b/src/frontend-common/common_host_interface.cpp @@ -69,19 +69,11 @@ void CommonHostInterface::SetDefaultSettings(SettingsInterface& si) si.SetStringValue("Hotkeys", "PowerOff", "Keyboard/Escape"); si.SetStringValue("Hotkeys", "TogglePause", "Keyboard/Pause"); si.SetStringValue("Hotkeys", "ToggleFullscreen", "Keyboard/Alt+Return"); + si.SetStringValue("Hotkeys", "IncreaseResolutionScale", "Keyboard/PageUp"); + si.SetStringValue("Hotkeys", "DecreaseResolutionScale", "Keyboard/PageDown"); + si.SetStringValue("Hotkeys", "ToggleSoftwareRendering", "Keyboard/End"); } -#if 0 -void CommonHostInterface::refreshGameList(bool invalidate_cache /* = false */, bool invalidate_database /* = false */) -{ - std::lock_guard lock(m_qsettings_mutex); - QtSettingsInterface si(m_qsettings); - m_game_list->SetSearchDirectoriesFromSettings(si); - m_game_list->Refresh(invalidate_cache, invalidate_database); - emit gameListRefreshed(); -} -#endif - std::optional CommonHostInterface::GetHostKeyCode(const std::string_view key_code) const {