EButtonPressMethod::Type

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

Choose your operating system:

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.