change imgui toggle key from leftalt to f12 (#2794)

This commit is contained in:
ManDude 2023-07-03 17:49:27 +01:00 committed by GitHub
parent cf295952b6
commit 71b4ab5122
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -152,7 +152,7 @@ class GameSubtitleSceneInfo {
bool operator<(const SubtitleLine& other) const { return (frame < other.frame); }
};
GameSubtitleSceneInfo(SubtitleSceneKind kind) : m_kind(kind), m_id(0), m_sorting_group_idx(-1) {}
GameSubtitleSceneInfo(SubtitleSceneKind kind) : m_id(0), m_kind(kind), m_sorting_group_idx(-1) {}
const std::string& name() const { return m_name; }
const std::vector<SubtitleLine>& lines() const { return m_lines; }

View File

@ -319,7 +319,7 @@ GLDisplay::GLDisplay(SDL_Window* window, SDL_GLContext gl_context, bool is_main)
// Register commands
m_input_manager->register_command(CommandBinding::Source::KEYBOARD,
CommandBinding(SDLK_LALT, [&]() {
CommandBinding(SDLK_F12, [&]() {
if (!Gfx::g_debug_settings.ignore_hide_imgui) {
set_imgui_visible(!is_imgui_visible());
}