diff --git a/Dear ImGui for Godot Demo.csproj b/Dear ImGui for Godot Demo.csproj index 971e249..9e72d97 100644 --- a/Dear ImGui for Godot Demo.csproj +++ b/Dear ImGui for Godot Demo.csproj @@ -10,6 +10,6 @@ - + \ No newline at end of file diff --git a/addons/imgui-godot/ImGuiGodot/Internal/Input.cs b/addons/imgui-godot/ImGuiGodot/Internal/Input.cs index 7e2e72c..7fd1b25 100644 --- a/addons/imgui-godot/ImGuiGodot/Internal/Input.cs +++ b/addons/imgui-godot/ImGuiGodot/Internal/Input.cs @@ -204,10 +204,10 @@ public static void ProcessNotification(long what) private static void UpdateKeyMods(ImGuiIOPtr io) { - io.AddKeyEvent(ImGuiKey.ImGuiMod_Ctrl, Godot.Input.IsKeyPressed(Key.Ctrl)); - io.AddKeyEvent(ImGuiKey.ImGuiMod_Shift, Godot.Input.IsKeyPressed(Key.Shift)); - io.AddKeyEvent(ImGuiKey.ImGuiMod_Alt, Godot.Input.IsKeyPressed(Key.Alt)); - io.AddKeyEvent(ImGuiKey.ImGuiMod_Super, Godot.Input.IsKeyPressed(Key.SuperL)); + io.AddKeyEvent(ImGuiKey.ModCtrl, Godot.Input.IsKeyPressed(Key.Ctrl)); + io.AddKeyEvent(ImGuiKey.ModShift, Godot.Input.IsKeyPressed(Key.Shift)); + io.AddKeyEvent(ImGuiKey.ModAlt, Godot.Input.IsKeyPressed(Key.Alt)); + io.AddKeyEvent(ImGuiKey.ModSuper, Godot.Input.IsKeyPressed(Key.SuperL)); } private static CursorShape ConvertCursorShape(ImGuiMouseCursor cur) => cur switch