Skip to content

Commit

Permalink
update for ImGui.NET 1.89.2
Browse files Browse the repository at this point in the history
  • Loading branch information
pkdawson committed Jan 8, 2023
1 parent 5c4a7b1 commit 8f4b20c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Dear ImGui for Godot Demo.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@
<EmbeddedResource Remove="doc\**" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="ImGui.NET" Version="1.89.1" />
<PackageReference Include="ImGui.NET" Version="1.89.2" />
</ItemGroup>
</Project>
8 changes: 4 additions & 4 deletions addons/imgui-godot/ImGuiGodot/Internal/Input.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8f4b20c

Please sign in to comment.