|
|
|
@ -351,6 +351,8 @@ bool SDLHostInterface::Initialize()
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
RegisterHotkeys();
|
|
|
|
|
|
|
|
|
|
|
|
ImGui::NewFrame();
|
|
|
|
ImGui::NewFrame();
|
|
|
|
|
|
|
|
|
|
|
|
// process events to pick up controllers before updating input map
|
|
|
|
// process events to pick up controllers before updating input map
|
|
|
|
@ -1334,6 +1336,16 @@ void SDLHostInterface::ClearImGuiFocus()
|
|
|
|
ImGui::SetWindowFocus(nullptr);
|
|
|
|
ImGui::SetWindowFocus(nullptr);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void SDLHostInterface::RegisterHotkeys()
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
RegisterHotkey(StaticString("General"), StaticString("FrameStep"), StaticString("Frame Step"), [this](bool pressed) {
|
|
|
|
|
|
|
|
if (!pressed)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
DoFrameStep();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void SDLHostInterface::DoStartDisc()
|
|
|
|
void SDLHostInterface::DoStartDisc()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
Assert(!m_system);
|
|
|
|
Assert(!m_system);
|
|
|
|
|