fix(a2a): advance on mouse click (use _Input; root Control ate clicks in _UnhandledInput)

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
gamer147
2026-07-06 15:09:23 -04:00
parent 78b7d92e93
commit 783b771020

View File

@@ -64,7 +64,9 @@ public partial class Main : Godot.Control
}
}
public override void _UnhandledInput(InputEvent e)
// _Input (not _UnhandledInput): the root Control consumes mouse clicks as GUI input before they
// reach _UnhandledInput, so clicks were swallowed while keyboard ui_accept still got through.
public override void _Input(InputEvent e)
{
if (_selftest) return;
if (e.IsActionPressed("ui_accept") ||