UWidgetInteractionComponent::PressPointerKey

Presses a key as if the mouse/pointer were the source of it.

Windows
MacOS
Linux

References

Module

UMG

Header

/Engine/Source/Runtime/UMG/Public/Components/WidgetInteractionComponent.h

Include

#include "Components/WidgetInteractionComponent.h"

Source

/Engine/Source/Runtime/UMG/Private/Components/WidgetInteractionComponent.cpp

Syntax

virtual void PressPointerKey
(
    FKey Key
)

Remarks

Presses a key as if the mouse/pointer were the source of it. Normally you would just use Left/Right mouse button for the Key. However - advanced uses could also be imagined where you send other keys to signal widgets to take special actions if they're under the cursor.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss