Follow imgui recommendation and streamline build dependencies (#355)

This commit is contained in:
Exzap 2022-10-11 01:43:15 +02:00 committed by GitHub
parent 431c5a101f
commit 52cc7c5996
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 16 additions and 20 deletions

View file

@ -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;
};