mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-11-26 23:55:40 +00:00
CommonHostInterface: Add Screenshot hotkey
This commit is contained in:
parent
afe2f96474
commit
1ee68ad12a
|
@ -84,9 +84,10 @@ void CommonHostInterface::SetDefaultSettings(SettingsInterface& si)
|
||||||
si.SetStringValue("Controller1", "ButtonR1", "Keyboard/E");
|
si.SetStringValue("Controller1", "ButtonR1", "Keyboard/E");
|
||||||
si.SetStringValue("Controller1", "ButtonR2", "Keyboard/3");
|
si.SetStringValue("Controller1", "ButtonR2", "Keyboard/3");
|
||||||
si.SetStringValue("Hotkeys", "FastForward", "Keyboard/Tab");
|
si.SetStringValue("Hotkeys", "FastForward", "Keyboard/Tab");
|
||||||
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", "PowerOff", "Keyboard/Escape");
|
||||||
|
si.SetStringValue("Hotkeys", "Screenshot", "Keyboard/F10");
|
||||||
si.SetStringValue("Hotkeys", "IncreaseResolutionScale", "Keyboard/PageUp");
|
si.SetStringValue("Hotkeys", "IncreaseResolutionScale", "Keyboard/PageUp");
|
||||||
si.SetStringValue("Hotkeys", "DecreaseResolutionScale", "Keyboard/PageDown");
|
si.SetStringValue("Hotkeys", "DecreaseResolutionScale", "Keyboard/PageDown");
|
||||||
si.SetStringValue("Hotkeys", "ToggleSoftwareRendering", "Keyboard/End");
|
si.SetStringValue("Hotkeys", "ToggleSoftwareRendering", "Keyboard/End");
|
||||||
|
@ -351,6 +352,12 @@ void CommonHostInterface::RegisterGeneralHotkeys()
|
||||||
PowerOffSystem();
|
PowerOffSystem();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
RegisterHotkey(StaticString("General"), StaticString("Screenshot"), StaticString("Save Screenshot"),
|
||||||
|
[this](bool pressed) {
|
||||||
|
if (!pressed && m_system)
|
||||||
|
SaveScreenshot();
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
void CommonHostInterface::RegisterGraphicsHotkeys()
|
void CommonHostInterface::RegisterGraphicsHotkeys()
|
||||||
|
|
Loading…
Reference in a new issue