Navigation
API > API/Plugins > API/Plugins/EnhancedInput > API/Plugins/EnhancedInput/UEnhancedInputUserSettings
Description
A virtual function that will be called whenever a player key mapping has been updated, before OnSettingsChanged is called. This provides subclasses the opportunity to modify this key mapping before any settings screens are updated
This does nothing by default, but some subclasses may want to modify the mapping. Perhaps to change to a specific hardware device ID or something like that
| Name | OnKeyMappingUpdated |
| Type | function |
| Header File | /Engine/Plugins/EnhancedInput/Source/EnhancedInput/Public/UserSettings/EnhancedInputUserSettings.h |
| Include Path | #include "UserSettings/EnhancedInputUserSettings.h" |
| Source | /Engine/Plugins/EnhancedInput/Source/EnhancedInput/Private/UserSettings/EnhancedInputUserSettings.cpp |
virtual void OnKeyMappingUpdated
(
FPlayerKeyMapping * ChangedMapping,
const FMapPlayerKeyArgs & InArgs,
const bool bIsBeingUnmapped
)
Parameters
| Name | Remarks |
|---|---|
| ChangedMapping | The key mapping that has changed |
| InArgs | The arguments that were used to change this mapping. |
| bIsBeingUnmapped | True if this key mapping is being unmapped. False if the key mapping is just being changed |