![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <InputChord.h>
Public Types | |
| enum class | ERelationshipType { None , Same , Masked , Masks } |
Public Attributes | |
| FKey | Key |
| uint32 | bShift:1 |
| uint32 | bCtrl:1 |
| uint32 | bAlt:1 |
| uint32 | bCmd:1 |
Friends | |
| uint32 | GetTypeHash (const FInputChord &Chord) |
An Input Chord is a key and the modifier keys that are to be held with it.
|
strong |
| FInputChord::FInputChord | ( | ) |
|
inline |
|
inline |
|
inline |
Creates and initializes a new instance.
| InKey | |
| InModifierKeys |
|
inline |
Creates and initializes a new instance.
| InKey | |
| InModifierKeys |
|
default |
Copy constructor.
| Other |
|
default |
Move constructor.
| Other |
Gets a localized string that represents the chord.
Returns the friendly, localized string name of this key binding
Gets the key represented as a localized string.
| FText FInputChord::GetModifierText | ( | TOptional< FText > | ModifierAppender = TOptional<FText>() | ) | const |
Gets the localized string for the modifier portion of the coord.
| ModifierAppender. | Text to append between each modifier and the key. If this is not specified a '+' character will be used |
| FInputChord::ERelationshipType FInputChord::GetRelationship | ( | const FInputChord & | OtherChord | ) | const |
Returns the relationship between this chord and another.
|
inline |
Checks whether this chord requires an modifier keys to be pressed.
|
inline |
Determines if this chord is valid. A chord is valid if it has a non modifier key that must be pressed and zero or more modifier keys that must be pressed
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Compares this input chord with another for inequality.
| Other | The other chord to compare with. |
|
default |
Copy assignment operator.
| Other |
|
default |
Move assignment operator.
| Other |
|
inline |
Compares this input chord with another for equality.
| Other | The other chord to compare with. |
|
inline |
Sets this chord to a new key and modifier state based on the provided template Should not be called directly. Only used by the key binding editor to set user defined keys
|
friend |
Gets a type hash value for the specified chord.
| Chord | The input chord to get the hash value for. |
| uint32 FInputChord::bAlt |
Whether the alt key is part of the chord.
| uint32 FInputChord::bCmd |
Whether the command key is part of the chord.
| uint32 FInputChord::bCtrl |
Whether the control key is part of the chord.
| uint32 FInputChord::bShift |
Whether the shift key is part of the chord.
| FKey FInputChord::Key |
The Key is the core of the chord.