Skip to content

Commit

Permalink
fix for Godot 4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
pkdawson committed Jul 20, 2023
1 parent 1fb2e9e commit ed904f6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions addons/imgui-godot/ImGuiGodot/Internal/Input.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ private void UpdateMouse(ImGuiIOPtr io)
{
if (io.WantSetMousePos)
{
#if GODOT4_1_OR_GREATER
// WarpMouse is relative to the current focused window
int[] windows = DisplayServer.GetWindowList();
foreach (int w in windows)
Expand All @@ -39,6 +40,7 @@ private void UpdateMouse(ImGuiIOPtr io)
break;
}
}
#endif
}
else
{
Expand Down

0 comments on commit ed904f6

Please sign in to comment.