|
|
|
@ -35,6 +35,7 @@
|
|
|
|
|
#include <cstdio>
|
|
|
|
|
#include <cstring>
|
|
|
|
|
#include <ctime>
|
|
|
|
|
#include "fullscreen_ui.h"
|
|
|
|
|
|
|
|
|
|
#ifdef WITH_SDL2
|
|
|
|
|
#include "sdl_audio_stream.h"
|
|
|
|
@ -54,6 +55,7 @@
|
|
|
|
|
#include <ShlObj.h>
|
|
|
|
|
#include <mmsystem.h>
|
|
|
|
|
#endif
|
|
|
|
|
#include <frontend-common/imgui_fullscreen.cpp>
|
|
|
|
|
|
|
|
|
|
Log_SetChannel(CommonHostInterface);
|
|
|
|
|
|
|
|
|
@ -1869,6 +1871,17 @@ void CommonHostInterface::RegisterGeneralHotkeys()
|
|
|
|
|
SaveScreenshot();
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
RegisterHotkey(StaticString(TRANSLATABLE("Hotkeys", "General")), StaticString("ChangeDisc"),
|
|
|
|
|
StaticString(TRANSLATABLE("Hotkeys", "ChangeDisc")), [this](bool pressed) {
|
|
|
|
|
if (pressed && System::IsValid())
|
|
|
|
|
{
|
|
|
|
|
int current = System::GetMediaSubImageIndex();
|
|
|
|
|
int next = (current + 1) % System::GetMediaSubImageCount();
|
|
|
|
|
if (current != next)
|
|
|
|
|
System::SwitchMediaSubImage(static_cast<u32>(next));
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
RegisterHotkey(StaticString(TRANSLATABLE("Hotkeys", "General")), StaticString("FrameStep"),
|
|
|
|
|
StaticString(TRANSLATABLE("Hotkeys", "Frame Step")), [this](bool pressed) {
|
|
|
|
|
if (pressed && System::IsValid())
|
|
|
|
@ -2550,6 +2563,7 @@ void CommonHostInterface::SetDefaultSettings(SettingsInterface& si)
|
|
|
|
|
si.SetStringValue("Hotkeys", "IncreaseResolutionScale", "Keyboard/PageUp");
|
|
|
|
|
si.SetStringValue("Hotkeys", "DecreaseResolutionScale", "Keyboard/PageDown");
|
|
|
|
|
si.SetStringValue("Hotkeys", "ToggleSoftwareRendering", "Keyboard/End");
|
|
|
|
|
si.SetStringValue("Hotkeys", "ChangeDisc", "Keyboard/F8");
|
|
|
|
|
|
|
|
|
|
si.SetStringValue("Main", "ControllerBackend",
|
|
|
|
|
ControllerInterface::GetBackendName(ControllerInterface::GetDefaultBackend()));
|
|
|
|
|