Navigation
API > API/Plugins > API/Plugins/EnhancedInput > API/Plugins/EnhancedInput/UEnhancedInputUserSettings
Description
This will register individual key mappings from the given Input Mapping context on the profile id.
If the mappings exist on the profile already, then they will be updated based on the latest data from the IMC otherwise, they will be added as new FPlayerKeyMapping.
This will be called for each key profile when users initially call RegisterInputMappingContext, and on load during Serialize to correctly populate a loaded profile with all the known registered IMC's mappings.
| Name | RegisterKeyMappingsToProfile |
| 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 bool RegisterKeyMappingsToProfile
(
UEnhancedPlayerMappableKeyProfile & Profile,
const UInputMappingContext * IMC
)