|
@ -7591,9 +7591,12 @@ static void ImGui::NavUpdate() |
|
|
NAV_MAP_KEY(ImGuiKey_RightArrow,ImGuiNavInput_KeyRight_); |
|
|
NAV_MAP_KEY(ImGuiKey_RightArrow,ImGuiNavInput_KeyRight_); |
|
|
NAV_MAP_KEY(ImGuiKey_UpArrow, ImGuiNavInput_KeyUp_ ); |
|
|
NAV_MAP_KEY(ImGuiKey_UpArrow, ImGuiNavInput_KeyUp_ ); |
|
|
NAV_MAP_KEY(ImGuiKey_DownArrow, ImGuiNavInput_KeyDown_ ); |
|
|
NAV_MAP_KEY(ImGuiKey_DownArrow, ImGuiNavInput_KeyDown_ ); |
|
|
if (g.IO.KeyCtrl) g.IO.NavInputs[ImGuiNavInput_TweakSlow] = 1.0f; |
|
|
if (g.IO.KeyCtrl) |
|
|
if (g.IO.KeyShift) g.IO.NavInputs[ImGuiNavInput_TweakFast] = 1.0f; |
|
|
g.IO.NavInputs[ImGuiNavInput_TweakSlow] = 1.0f; |
|
|
if (g.IO.KeyAlt) g.IO.NavInputs[ImGuiNavInput_KeyMenu_] = 1.0f; |
|
|
if (g.IO.KeyShift) |
|
|
|
|
|
g.IO.NavInputs[ImGuiNavInput_TweakFast] = 1.0f; |
|
|
|
|
|
if (g.IO.KeyAlt && !g.IO.KeyCtrl) // AltGR is Alt+Ctrl, also even on keyboards without AltGR we don't want Alt+Ctrl to open menu.
|
|
|
|
|
|
g.IO.NavInputs[ImGuiNavInput_KeyMenu_] = 1.0f; |
|
|
#undef NAV_MAP_KEY |
|
|
#undef NAV_MAP_KEY |
|
|
} |
|
|
} |
|
|
memcpy(g.IO.NavInputsDownDurationPrev, g.IO.NavInputsDownDuration, sizeof(g.IO.NavInputsDownDuration)); |
|
|
memcpy(g.IO.NavInputsDownDurationPrev, g.IO.NavInputsDownDuration, sizeof(g.IO.NavInputsDownDuration)); |
|
|