RealDocs

UKismetInputLibrary::InputEvent_IsAltDown

function Engine Blueprint Since unknown
#include "Kismet/KismetInputLibrary.h"
Access: public Specifiers: staticBlueprintPure

Description

Returns true if either the left or right Alt key was held down when this input event occurred.

Caveats & Gotchas

  • Reflects modifier state at the moment the event fired, not a live poll of current key state.
  • On Windows, Alt is also used by the OS for menu access keys and Alt+Tab, so some Alt key-down events may never reach the game window.

Signature

static bool InputEvent_IsAltDown(const FInputEvent& Input);

Parameters

Name Type Description Default
Input const FInputEvent& The input event to test.

Return Type

bool

Example

Alt-modified drag behaviour C++
FReply UMyWidget::NativeOnMouseMove(const FGeometry& InGeometry, const FPointerEvent& InMouseEvent)
{
    if (UKismetInputLibrary::InputEvent_IsAltDown(InMouseEvent))
    {
        RotateInPlace(InMouseEvent.GetCursorDelta());
    }
    return FReply::Handled();
}

Version History

Introduced in: unknown

Version Status Notes
5.6 stable

Feedback

Was this helpful?

Suggest an edit

Select a field above to begin editing.