Navigation
API > API/Plugins > API/Plugins/EnhancedInput
Inheritance Hierarchy
- IEnhancedInputSubsystemInterface
- UEnhancedInputEditorSubsystem
- UEnhancedInputLocalPlayerSubsystem
- UEnhancedInputWorldSubsystem
- UInputVCamSubsystem
References
| Module | EnhancedInput |
| Header | /Engine/Plugins/EnhancedInput/Source/EnhancedInput/Public/EnhancedInputSubsystemInterface.h |
| Include | #include "EnhancedInputSubsystemInterface.h" |
Syntax
class IEnhancedInputSubsystemInterface
Remarks
Includes native functionality shared between all subsystems.
Variables
| Type | Name | Description | |
|---|---|---|---|
| PRAGMA_DISABLE_DEPRECATION_WARNINGS | AutoCreateRefTerm | ||
| AutoCreateRefTerm | |||
| PRAGMA_DISABLE_DEPRECATION_WARNINGS | DeprecationMessage | ||
| PRAGMA_DISABLE_DEPRECATION_WARNINGS | DisplayName | ||
| DisplayName |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | AddMappingContext
(
const UInputMappingContext* MappingContext, |
Add a control mapping context. | |
| void | Binds to any delegates of interest on the UEnhancedInputUserSettings if they are enabled in the developer settings. | ||
| void | Remove all applied mapping contexts. | ||
| void | Function that will be called when Control Mappings have been rebuilt this tick. | ||
| TArray< FEnhancedActionKeyMapping > | Get an array of the currently applied key mappings that are marked as Player Mappable. | ||
| UEnhancedPlayerInput * | |||
| UEnhancedInputUserSettings * | |||
| void | Called each tick from the Enhanced Input module. | ||
| bool | HasMappingContext
(
const UInputMappingContext* MappingContext |
Check if a mapping context is applied to this subsystem's owner. | |
| bool | HasMappingContext
(
const UInputMappingContext* MappingContext, |
Check if a mapping context is applied to this subsystem's owner. | |
| void | Create a new user settings object if it is enabled in the EI developer settings. | ||
| void | InjectInputForAction
(
const UInputAction* Action, |
Input simulation via injection. | |
| void | InjectInputForPlayerMapping
(
const FName MappingName, |
Input simulation via injection. | |
| void | InjectInputVectorForAction
(
const UInputAction* Action, |
Input simulation via injection. | |
| void | InjectInputVectorForPlayerMapping
(
const FName MappingName, |
Input simulation via injection. | |
| void | OnUserKeyProfileChanged
(
const UEnhancedPlayerMappableKeyProfile* InNewProfile |
A callback for when the user has applied a new mappable key profile. | |
| void | OnUserSettingsChanged
(
UEnhancedInputUserSettings* Settings |
Callback for when any Enhanced Input user settings have been changed (a new key mapping for example) | |
| TArray< FKey > | QueryKeysMappedToAction
(
const UInputAction* Action |
Returns the keys mapped to the given action in the active input mapping contexts. | |
| EMappingQueryResult | QueryMapKeyInActiveContextSet
(
const UInputMappingContext* InputContext, |
Check if a key mapping is safe to add to a given mapping context within the set of active contexts currently applied to the player controller. | |
| EMappingQueryResult | QueryMapKeyInContextSet
(
const TArray< UInputMappingContext* >& PrioritizedActiveContexts, |
Check if a key mapping is safe to add to a collection of mapping contexts | |
| void | RemoveMappingContext
(
const UInputMappingContext* MappingContext, |
Remove a specific control context. This is safe to call even if the context is not applied. | |
| void | RequestRebuildControlMappings
(
const FModifyContextOptions& Options, |
Flag player for reapplication of all mapping contexts at the end of this frame. | |
| void | ShowMappingContextDebugInfo
(
UCanvas* Canvas, |
Helper function to display debug about mapping context info | |
| void | StartContinuousInputInjectionForAction
(
const UInputAction* Action, |
Starts simulation of input via injection. | |
| void | StartContinuousInputInjectionForPlayerMapping
(
const FName MappingName, |
Starts simulation of input via injection. | |
| void | StopContinuousInputInjectionForAction
(
const UInputAction* Action |
Stops continuous input injection for the given action. | |
| void | StopContinuousInputInjectionForPlayerMapping
(
const FName MappingName |
Stops continuous input injection for the given player mapping name. | |
| void | TickForcedInput
(
float DeltaTime |
Ticks any forced/injected input to the subsystem's player input. |
Deprecated Variables
| Type | Name | Description | |
|---|---|---|---|
| PRAGMA_DISABLE_DEPRECATION_WARNINGS | DeprecatedFunction | K2_AddPlayerMappedKeyInSlot has been deprecated, please use UEnhancedInputUserSettings instead. | |
| DeprecatedFunction | RemovePlayerMappedKeyInSlot has been deprecated, please use UEnhancedInputUserSettings instead. | ||
| DeprecationMessage | RemovePlayerMappedKeyInSlot has been deprecated, please use UEnhancedInputUserSettings instead. |
Deprecated Functions
| Type | Name | Description | |
|---|---|---|---|
| void | AddPlayerMappableConfig
(
const UPlayerMappableInputConfig* Config, |
RemoveAllPlayerMappedKeys has been deprecated, please use UEnhancedInputUserSettings instead. | |
| int32 | AddPlayerMappedKey
(
const FName MappingName, |
AddPlayerMappedKey has been deprecated, please use AddPlayerMappedKeyInSlot instead. | |
| int32 | AddPlayerMappedKeyInSlot
(
const FName MappingName, |
AddPlayerMappedKeyInSlot has been deprecated, please use UEnhancedInputUserSettings instead. | |
| TArray< FKey > | GetAllPlayerMappedKeys
(
const FName MappingName |
GetAllPlayerMappedKeys has been deprecated, please use UEnhancedInputUserSettings instead. | |
| FKey | GetPlayerMappedKey
(
const FName MappingName |
GetPlayerMappedKey has been deprecated, please use GetPlayerMappedKeyInSlot instead. | |
| FKey | GetPlayerMappedKeyInSlot
(
const FName MappingName, |
RemovePlayerMappedKeyInSlot has been deprecated, please use UEnhancedInputUserSettings instead. | |
| void | RemoveAllPlayerMappedKeys
(
const FModifyContextOptions& Options |
RemoveAllPlayerMappedKeys has been deprecated, please use UEnhancedInputUserSettings instead. | |
| void | RemovePlayerMappableConfig
(
const UPlayerMappableInputConfig* Config, |
RemoveAllPlayerMappedKeys has been deprecated, please use UEnhancedInputUserSettings instead. | |
| int32 | RemovePlayerMappedKey
(
const FName MappingName, |
RemovePlayerMappedKey has been deprecated, please use RemovePlayerMappedKeyInSlot instead. | |
| int32 | RemovePlayerMappedKeyInSlot
(
const FName MappingName, |
RemovePlayerMappedKeyInSlot has been deprecated, please use UEnhancedInputUserSettings instead. |