EButtonPressMethod::Type

Enumerates different methods that a button can be triggered with keyboard/controller.

Windows
MacOS
Linux

References

Module

SlateCore

Header

/Engine/Source/Runtime/SlateCore/Public/Types/SlateEnums.h

Include

#include "Types/SlateEnums.h"

Syntax

namespace EButtonPressMethod
{
    enum Type
    {
        DownAndUp,
        ButtonPress,
        ButtonRelease,
    }
}

Values

Name

Description

DownAndUp

User must press the button, then release while the button has focus to trigger the click.

ButtonPress

Click will be triggered immediately on button press.

ButtonRelease

Click will always be triggered when a button release occurs on the focused button, even if the button wasn't pressed while focused.

Remarks

Enumerates different methods that a button can be triggered with keyboard/controller. Normally, DownAndUp is appropriate.

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