mirror of
https://github.com/ocornut/imgui.git
synced 2026-02-06 04:20:08 +00:00
This commit is contained in:
parent
d981b33dd0
commit
285e3042ba
3 changed files with 6 additions and 3 deletions
|
|
@ -4328,7 +4328,7 @@ void ImGui::Initialize()
|
|||
g.Viewports.push_back(viewport);
|
||||
g.TempBuffer.resize(1024 * 3 + 1, 0);
|
||||
|
||||
// Build KeysMayBeCharInput[] lookup table (1 bool per named key)
|
||||
// Build KeysMayBeCharInput[] lookup table (1 bit per named key)
|
||||
for (ImGuiKey key = ImGuiKey_NamedKey_BEGIN; key < ImGuiKey_NamedKey_END; key = (ImGuiKey)(key + 1))
|
||||
if ((key >= ImGuiKey_0 && key <= ImGuiKey_9) || (key >= ImGuiKey_A && key <= ImGuiKey_Z) || (key >= ImGuiKey_Keypad0 && key <= ImGuiKey_Keypad9)
|
||||
|| key == ImGuiKey_Tab || key == ImGuiKey_Space || key == ImGuiKey_Apostrophe || key == ImGuiKey_Comma || key == ImGuiKey_Minus || key == ImGuiKey_Period
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue