RealDocs

UKismetInputLibrary::InputEvent_IsLeftShiftDown

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

Description

Returns true if specifically the left Shift key was held down when this input event occurred.

Caveats & Gotchas

  • Some platforms and virtual keyboards do not distinguish left/right modifier keys at the hardware level, in which case this can report false even while InputEvent_IsShiftDown reports true.
  • Reflects modifier state at the moment the event fired, not a live poll of current key state.

Signature

static bool InputEvent_IsLeftShiftDown(const FInputEvent& Input);

Parameters

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

Return Type

bool

Example

Bind an action to left Shift specifically C++
FReply UMyWidget::NativeOnKeyDown(const FGeometry& InGeometry, const FKeyEvent& InKeyEvent)
{
    if (UKismetInputLibrary::InputEvent_IsLeftShiftDown(InKeyEvent))
    {
        StartCrouch();
    }
    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.