UKismetInputLibrary::InputEvent_IsRightAltDown
#include "Kismet/KismetInputLibrary.h"
Access: public
Specifiers: staticBlueprintPure
Description
Returns true if specifically the right Alt key was held down when this input event occurred.
Caveats & Gotchas
- • On many European keyboard layouts, right Alt is remapped by the OS as AltGr to produce special characters, which can prevent this from ever registering true depending on the OS input pipeline.
- • Reflects modifier state at the moment the event fired, not a live poll of current key state.
Signature
static bool InputEvent_IsRightAltDown(const FInputEvent& Input); Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| Input | const FInputEvent& | The input event to test. | — |
Return Type
bool Example
Detect right Alt as a distinct binding C++
FReply UMyWidget::NativeOnKeyDown(const FGeometry& InGeometry, const FKeyEvent& InKeyEvent)
{
if (UKismetInputLibrary::InputEvent_IsRightAltDown(InKeyEvent))
{
ToggleAlternateMode();
}
return FReply::Handled();
} Tags
Version History
Introduced in: unknown
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?