Fix: Hauptmenue-Buttons reagieren auf confirm (Enter + Controller)
Ursache: Die Aktivierung verliess sich auf Godots eingebautes ui_accept, das standardmaessig keinen Controller-Button enthaelt; die confirm-Action aus der Input-Map wurde nie gelesen. Fix: confirm aktiviert in _unhandled_input den fokussierten Button; Events, die auch ui_accept matchen (Enter), bleiben dem eingebauten Pfad ueberlassen, sonst gaebe es eine Doppel-Ausloesung (headless per Input-Sonde verifiziert: Enter = 1x, Joypad-Button 0 = 1x). grab_focus laeuft jetzt deferred, damit der Initial-Fokus auch nach Szenenwechseln sicher sitzt. Dazu: von Godot 4.7 erzeugte Script-UIDs der Phase-1a-Dateien. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
parent
df795ef40d
commit
ec8e1fa665
4 changed files with 32 additions and 7 deletions
1
scripts/ui/main_menu.gd.uid
Normal file
1
scripts/ui/main_menu.gd.uid
Normal file
|
|
@ -0,0 +1 @@
|
|||
uid://dy1ia7kmpwymh
|
||||
Loading…
Add table
Add a link
Reference in a new issue