Skip to content

Commit

Permalink
Fixed ImGui modifier keys (again)
Browse files Browse the repository at this point in the history
ImGui mod keys (like Ctrl-clicking on a slider to enter a value manually) did not work anymore.
This presumably happened during the big ImGui update in commit b15af18.
  • Loading branch information
alexc71 committed Oct 4, 2023
1 parent e62ac9a commit 08cc6a6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions auto_vk_toolkit/src/imgui_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,10 @@ namespace avk
io.KeyShift = input().key_down(key_code::left_shift) || input().key_down(key_code::right_shift);
io.KeyAlt = input().key_down(key_code::left_alt) || input().key_down(key_code::right_alt);
io.KeySuper = input().key_down(key_code::left_super) || input().key_down(key_code::right_super);
io.AddKeyEvent(ImGuiMod_Ctrl, io.KeyCtrl);
io.AddKeyEvent(ImGuiMod_Shift, io.KeyShift);
io.AddKeyEvent(ImGuiMod_Alt, io.KeyAlt);
io.AddKeyEvent(ImGuiMod_Super, io.KeySuper);

// Characters:
for (auto c : input().entered_characters()) {
Expand Down

0 comments on commit 08cc6a6

Please sign in to comment.