Fix menu cursor auto-move

This commit is contained in:
gamer147
2026-08-16 11:07:09 -04:00
parent d4d9def8f4
commit eef1225b56
11 changed files with 75 additions and 10 deletions

View File

@@ -482,6 +482,13 @@ public sealed partial class GodotAdvHost
_timeline?.Event("cursor-clear", new());
}
public void WarpCursor(int virtualX, int virtualY)
{
// Script execution is on the VM thread; Godot input/display APIs belong to the main thread.
_main.CallDeferred("WarpAgeCursor", virtualX, virtualY);
_timeline?.Event("cursor-warp", new() { ["x"] = virtualX, ["y"] = virtualY });
}
public void WaitForForegroundTransition(GfxState gfx)
{
_foregroundTransitionWaitBypassed = false;