UKismetInputLibrary::EqualEqual_InputChordInputChord
#include "Kismet/KismetInputLibrary.h"
Access: public
Specifiers: staticBlueprintPure
Description
Tests whether two FInputChord values represent the same key combination, including modifier state. Backs the "==" comparison node for InputChord pins in the Blueprint graph editor.
Caveats & Gotchas
- • An FInputChord comparison includes the Shift/Ctrl/Alt/Cmd modifier flags as well as the key, so two chords with the same key but different modifiers are not equal.
- • In C++, prefer FInputChord's own operator== directly; this static wrapper mainly exists to back the Blueprint node.
Signature
static bool EqualEqual_InputChordInputChord( FInputChord A, FInputChord B ); Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| A | FInputChord | The chord to compare against. | — |
| B | FInputChord | The chord to compare. | — |
Return Type
bool Example
Compare two input chords C++
FInputChord ChordA(EKeys::S, false, true, false, false); // Ctrl+S
FInputChord ChordB(EKeys::S, false, true, false, false); // Ctrl+S
bool bSame = UKismetInputLibrary::EqualEqual_InputChordInputChord(ChordA, ChordB);
// bSame == true Tags
Version History
Introduced in: unknown
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?