Skip to content

How-to: Input Action ergänzen

  1. Action in src/HolodeckArena.Game3D/project.godot vorzugsweise über Project Settings → Input Map anlegen.
  2. Wenn die Action zur Bootstrap-Grundausstattung gehört, AppBootstrap.EnsureGameplayInputActions ergänzen. Aktuell werden Movement, interact und attack_primary sichergestellt; Weapon-Slot-Actions werden im PlayerCombatComponent erwartet, aber nicht im Bootstrap angelegt.
  3. Consumer nutzt Input.IsActionPressed/Input.GetVector statt harter Tasten. _UnhandledInput für diskrete Aktionen, _PhysicsProcess für kontinuierliche Bewegung.
  4. UI-Fokus und ControlMode prüfen; Chat/LineEdit darf keine Gameplayaktion auslösen.
  5. Input-Referenz und Szenen/Controller aktualisieren; bei Netzwerkinput Sequenz/Replayevent deterministisch abbilden.

Prüfung: Keyboardbinding, Rebind/fehlende Action, Fokus, zwei ControlModes und Headless-Start ohne Input. project.godot ist die maßgebliche Inputliste; AppBootstrap ist Fallback/Runtime-Ergänzung.

Verwandt: Konfiguration/CLI, Player, UI.