mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2025-01-18 06:25:37 +00:00
CommonHostInterface: Add some more default key bindings
Also remove some unused code.
This commit is contained in:
parent
fdcb891ed3
commit
d41e6dd28f
|
@ -69,19 +69,11 @@ void CommonHostInterface::SetDefaultSettings(SettingsInterface& si)
|
||||||
si.SetStringValue("Hotkeys", "PowerOff", "Keyboard/Escape");
|
si.SetStringValue("Hotkeys", "PowerOff", "Keyboard/Escape");
|
||||||
si.SetStringValue("Hotkeys", "TogglePause", "Keyboard/Pause");
|
si.SetStringValue("Hotkeys", "TogglePause", "Keyboard/Pause");
|
||||||
si.SetStringValue("Hotkeys", "ToggleFullscreen", "Keyboard/Alt+Return");
|
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<std::mutex> 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::HostKeyCode>
|
std::optional<CommonHostInterface::HostKeyCode>
|
||||||
CommonHostInterface::GetHostKeyCode(const std::string_view key_code) const
|
CommonHostInterface::GetHostKeyCode(const std::string_view key_code) const
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue