Navigation
API > API/Plugins > API/Plugins/CommonUI > API/Plugins/CommonUI/Input
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- USubsystem
- ULocalPlayerSubsystem
- UCommonUIActionRouterBase
References
| Module | CommonUI |
| Header | /Engine/Plugins/Runtime/CommonUI/Source/CommonUI/Public/Input/CommonUIActionRouterBase.h |
| Include | #include "Input/CommonUIActionRouterBase.h" |
Syntax
UCLASS&40;&41;
class UCommonUIActionRouterBase : public ULocalPlayerSubsystem
Remarks
The nucleus of the CommonUI input routing system.
Gathers input from external sources such as game viewport client and forwards them to widgets via activatable tree node representation.
Variables
| Type | Name | Description | |
|---|---|---|---|
| TOptional< FUIInputConfig > | ActiveInputConfig | The currently applied UI input configuration | |
| TSharedPtr< FCommonAnalogCursor > | AnalogCursor | ||
| bool | bIsActivatableTreeEnabled | ||
| FTSTicker::FDelegateHandle | TickHandle |
Constructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | AddBinding
(
FUIActionBindingHandle Binding |
||
| void | ApplyUIInputConfig
(
const FUIInputConfig& NewConfig, |
||
| bool | |||
| UCommonActivatableWidget * | FindOwningActivatable
(
TSharedPtr< SWidget > Widget, |
Searches up the SWidget tree until it finds the nearest UCommonActivatableWidget | |
| void | FlushInput () |
||
| void | |||
| TArray< const UWidget * > | |||
| TArray< FUIActionBindingHandle > | |||
| UCommonUIActionRouterBase * | |||
| ECommonInputMode | GetActiveInputMode
(
ECommonInputMode DefaultInputMode |
||
| EMouseCaptureMode | GetActiveMouseCaptureMode
(
EMouseCaptureMode DefaultMouseCapture |
||
| TSharedPtr< FCommonAnalogCursor > | |||
| UCommonInputSubsystem & | |||
| int32 | |||
| bool | |||
| bool | IsWidgetInActiveRoot
(
const UCommonActivatableWidget* Widget |
||
| TSharedRef< FCommonAnalogCursor > | |||
| void | NotifyUserWidgetConstructed
(
const UCommonUserWidget& Widget |
||
| void | NotifyUserWidgetDestructed
(
const UCommonUserWidget& Widget |
||
| FOnActivationMetadataChanged & | |||
| FOnActiveInputModeChanged & | |||
| FSimpleMulticastDelegate & | |||
| void | |||
| ERouteUIInputResult | ProcessInput
(
FKey Key, |
||
| void | |||
| void | |||
| void | |||
| void | |||
| bool | RegisterLinkedPreprocessor
(
const UWidget& Widget, |
||
| void | RegisterScrollRecipient
(
const UWidget& ScrollableWidget |
||
| FUIActionBindingHandle | RegisterUIActionBinding
(
const UWidget& Widget, |
||
| void | RemoveBinding
(
FUIActionBindingHandle Binding |
||
| void | SetActiveRoot
(
FActivatableTreeRootPtr NewActiveRoot |
||
| void | SetActiveUIInputConfig
(
const FUIInputConfig& NewConfig, |
Sets Input Config | |
| void | SetForceResetActiveRoot
(
bool bInForceResetActiveRoot |
||
| void | SetIsActivatableTreeEnabled
(
bool bInIsTreeEnabled |
Sets whether the underlying activatable tree system is enabled - when disabled, all we really do is process Persistent input actions | |
| bool | |||
| void | UnregisterScrollRecipient
(
const UWidget& ScrollableWidget |
||
| void | UpdateLeafNodeAndConfig
(
FActivatableTreeRootPtr DesiredRoot, |
Overridden from USubsystem
| Type | Name | Description | |
|---|---|---|---|
| void | Deinitialize () |
Implement this for deinitialization of instances of the system | |
| void | Initialize
(
FSubsystemCollectionBase& Collection |
Implement this for initialization of instances of the system | |
| bool | ShouldCreateSubsystem
(
UObject* Outer |
Override to control if the Subsystem should be created at all. |
Classes
| Type | Name | Description | |
|---|---|---|---|
| FOnActivationMetadataChanged | |||
| FOnActiveInputModeChanged |