Navigation
API > API/Plugins > API/Plugins/EnhancedInput
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- USubsystem
- UWorldSubsystem
- UEnhancedInputWorldSubsystem
References
| Module | EnhancedInput |
| Header | /Engine/Plugins/EnhancedInput/Source/EnhancedInput/Public/EnhancedInputSubsystems.h |
| Include | #include "EnhancedInputSubsystems.h" |
Syntax
UCLASS&40;DisplayName&61;"Enhanced Input World Subsystem &40;Experimental&41;"&41;
class UEnhancedInputWorldSubsystem :
public UWorldSubsystem,
public IEnhancedInputSubsystemInterface
Remarks
Per world input subsystem that allows you to bind input delegates to actors without an owning Player Controller. This should be used when an actor needs to receive input delegates but will never have an owning Player Controller. For example, you can add input delegates to unlock a door when the user has a certain set of keys pressed. Be sure to enable input on the actor, or else the input delegates won't fire!
Note: if you do have an actor with an owning Player Controller use the local player input subsystem instead.
Variables
| Type | Name | Description | |
|---|---|---|---|
| TArray< TWeakObjectPtr< UInputComponent > > | CurrentInputStack | Internal. This is the current stack of InputComponents that is being processed by the PlayerInput. | |
| TSharedPtr< FEnhancedInputWorldProcessor > | InputPreprocessor | Input processor that is created on Initalize. | |
| TObjectPtr< UEnhancedPlayerInput > | PlayerInput | The player input that is processing the input within this subsystem |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | AddActorInputComponent
(
AActor* Actor |
Adds this Actor's input component onto the stack to be processed by this subsystem's tick function | |
| void | Adds all the default mapping contexts | ||
| bool | InputKey
(
const FInputKeyParams& Params |
Inputs a key on this subsystem's player input which can then be processed as normal during Tick. | |
| bool | RemoveActorInputComponent
(
AActor* Actor |
Removes this Actor's input component from the stack to be processed by this subsystem's tick function | |
| void | Removes all the default mapping contexts | ||
| void | TickPlayerInput
(
float DeltaTime |
Builds the current input stack and ticks the world subsystem's player input. |
Overridden from UWorldSubsystem
| Type | Name | Description | |
|---|---|---|---|
| bool | DoesSupportWorldType
(
const EWorldType::Type WorldType |
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. |
Overridden from IEnhancedInputSubsystemInterface
| Type | Name | Description | |
|---|---|---|---|
| UEnhancedPlayerInput * | |||
| void | ShowDebugInfo
(
UCanvas* Canvas |
Debug visualization for enhanced input local player subsystem. |