Navigation
API > API/Plugins > API/Plugins/EnhancedInput > API/Plugins/EnhancedInput/UserSettings
References
| Module | EnhancedInput |
| Header | /Engine/Plugins/EnhancedInput/Source/EnhancedInput/Public/UserSettings/EnhancedInputUserSettings.h |
| Include | #include "UserSettings/EnhancedInputUserSettings.h" |
Syntax
USTRUCT&40;BlueprintType&41;
struct FPlayerKeyMapping
Remarks
Represents a single key mapping that is set by the player
Variables
| Type | Name | Description | |
|---|---|---|---|
| TObjectPtr< const UInputAction > | AssociatedInputAction | The input action associated with this player key mapping | |
| uint8: 1 | bIsDirty | True if this key mapping is dirty (i.e. has been changed by the player) | |
| FKey | CurrentKey | The key that the player has mapped to | |
| FKey | DefaultKey | The default key that this mapping was set to in its input mapping context | |
| FText | DisplayCategory | Localized display category of this mapping | |
| FText | DisplayName | Localized display name of this mapping | |
| FHardwareDeviceIdentifier | HardwareDeviceId | An optional Hardware Device specifier for this mapping | |
| FName | MappingName | The name of the mapping for this key | |
| EPlayerMappableKeySlot | Slot | What slot this key is mapped to |
Constructors
| Type | Name | Description | |
|---|---|---|---|
FPlayerKeyMapping
(
const FEnhancedActionKeyMapping& OriginalMapping, |
Functions
| Type | Name | Description | |
|---|---|---|---|
| const UInputAction * | Returns the input action asset associated with this player key mapping | ||
| const FKey & | Returns the key that the player has mapped. | ||
| const FKey & | Returns the default key that this mapping is to | ||
| const FText & | The localized display name for the category to use for this mapping | ||
| const FText & | The localized display name to use for this mapping | ||
| const FHardwareDeviceIdentifier & | Returns the optional hardware device ID that this mapping is specific to | ||
| EHardwareDeviceSupportedFeatures::Type | Gets the supported hardware device feature flags associated with this key mapping. | ||
| const FName | The unique FName associated with this mapping. | ||
| EHardwareDevicePrimaryType | Gets the primary device type associated with this key mapping. Taken from the HardwareDeviceId. | ||
| EPlayerMappableKeySlot | GetSlot () |
Returns what player mappable slot this mapping is in | |
| bool | IsCustomized () |
Returns true if this mapping has been customized by the player, and false if it has not been. | |
| const bool | IsDirty () |
Returns true if this mapping has been modified since it was registered from an IMC | |
| bool | IsValid () |
Returns true if this player mapping is valid | |
| void | Resets the current mapping to the default one | ||
| void | SetCurrentKey
(
const FKey& NewKey |
Sets the value of the current key to the one given | |
| void | SetHardwareDeviceId
(
const FHardwareDeviceIdentifier& InDeviceId |
Sets the value of the hardware device ID that this custom key mapping is associated with. | |
| FString | ToString () |
Print out some debug information about this player key mappings | |
| void | UpdateDefaultKeyFromActionKeyMapping
(
const FEnhancedActionKeyMapping& OriginalMapping |
Sets the Default Key on this mapping to that of the given ActionKeyMapping. | |
| void | UpdateMetadataFromActionKeyMapping
(
const FEnhancedActionKeyMapping& OriginalMapping |
Updates the metadata properties on this player mapped key based on the given enhanced action mapping. |
Operators
| Type | Name | Description | |
|---|---|---|---|
| bool | operator!=
(
const FPlayerKeyMapping& Other |
||
| bool | operator==
(
const FPlayerKeyMapping& Other |
Constants
| Name | Description |
|---|---|
| InvalidMapping | A static invalid player key mapping to be used for easy comparisons in blueprint |