Player controller code to sort input components better: widgets with 'Stop Input' go to top of priority stack, and also, priority actually works now.

This commit is contained in:
2026-04-17 17:56:10 -04:00
parent d396f394ab
commit 7a09da8a4e
5 changed files with 110 additions and 8 deletions

View File

@@ -36,6 +36,11 @@ public:
// Called by GameMode each tick.
void UpdateLookAt();
// Input stack overrides: unsorted, append-on-push.
virtual void PushInputComponent(UInputComponent* InInputComponent) override;
virtual bool PopInputComponent(UInputComponent* InInputComponent) override;
virtual void BuildInputStack(TArray<UInputComponent*>& InputStack) override;
// Get the player controller, cast to AlxPlayerControllerBase.
static AlxPlayerControllerBase *FromContext(const UObject *Context);