mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-01 05:38:50 +00:00
Use range loop (if possible)
This commit is contained in:
parent
0fa4812c2f
commit
0ede5d1537
15 changed files with 92 additions and 100 deletions
|
@ -331,6 +331,7 @@ void RenderWidget::SetImGuiKeyMap()
|
|||
{ImGuiKey_Z, Qt::Key_Z},
|
||||
}};
|
||||
auto lock = g_renderer->GetImGuiLock();
|
||||
for (auto entry : key_map)
|
||||
ImGui::GetIO().KeyMap[entry[0]] = entry[1] & 0x1FF;
|
||||
|
||||
for (auto [imgui_key, qt_key] : key_map)
|
||||
ImGui::GetIO().KeyMap[imgui_key] = (qt_key & 0x1FF);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue