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:
@@ -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 (_selftest) return;
|
||||||
if (e.IsActionPressed("ui_accept") ||
|
if (e.IsActionPressed("ui_accept") ||
|
||||||
|
|||||||
Reference in New Issue
Block a user