mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 05:09:34 -06:00
Use range loop (if possible)
This commit is contained in:

committed by
Jordan Woyak

parent
0fa4812c2f
commit
0ede5d1537
@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user