From 6b057d15143b6ac8a1045cda23731ca3ebdad20a Mon Sep 17 00:00:00 2001 From: jyelon Date: Fri, 17 Apr 2026 03:17:15 -0400 Subject: [PATCH] Improve docs for UlxUserWidget --- Source/Integration/LuprexUserWidget.h | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/Source/Integration/LuprexUserWidget.h b/Source/Integration/LuprexUserWidget.h index 0672afed..59fc20a7 100644 --- a/Source/Integration/LuprexUserWidget.h +++ b/Source/Integration/LuprexUserWidget.h @@ -22,20 +22,18 @@ public: // from the component and reinstated without losing their delegates. void BackupInputComponent(); - // Remove every live event binding whose action is InputAction. - // No-op if there are none, or if InputComponent isn't enhanced. + // Removes all handlers for 'InputAction'. That includes temporarily + // deactivating event graph nodes that handle 'InputAction'. UFUNCTION(BlueprintCallable, Category="Luprex|Widget Enhanced Input") void DisableInputAction(const UInputAction* InputAction); - // Replace any live bindings for InputAction with fresh clones of every - // saved binding for that action. Leaves the backup array intact so this - // can be called repeatedly. + // Reactivates any graph nodes that handle 'InputAction', and + // removes any other handlers for 'InputAction'. UFUNCTION(BlueprintCallable, Category="Luprex|Widget Enhanced Input") void RestoreInputAction(const UInputAction* InputAction); - // Install live bindings on From that, when fired, dispatch through a - // clone of each saved binding for To. Clears any pre-existing live - // bindings on From first. Backup array is untouched. + // Any event graph nodes that handle 'to' are made to also + // handle 'From' events. Any other handlers of 'From' are removed. UFUNCTION(BlueprintCallable, Category="Luprex|Widget Enhanced Input") void RedirectInputAction(const UInputAction* From, const UInputAction* To);