mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-07-04 14:01:17 +12:00
Follow imgui recommendation and streamline build dependencies (#355)
This commit is contained in:
parent
431c5a101f
commit
52cc7c5996
8 changed files with 16 additions and 20 deletions
|
@ -136,8 +136,8 @@ void ImGui_UpdateWindowInformation(bool mainWindow)
|
|||
auto key = keyboard_mapping.find(key_code);
|
||||
if (key != keyboard_mapping.end())
|
||||
return key->second;
|
||||
ImGuiKey mapped_key = current_key + ImGuiKey_NamedKey_BEGIN;
|
||||
current_key = (current_key + 1) % ImGuiKey_NamedKey_COUNT ;
|
||||
ImGuiKey mapped_key = (ImGuiKey)((uint32)current_key + ImGuiKey_NamedKey_BEGIN);
|
||||
current_key = (current_key + 1) % (uint32)ImGuiKey_NamedKey_COUNT;
|
||||
keyboard_mapping[key_code] = mapped_key;
|
||||
return mapped_key;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue