Choose your operating system:
Windows
macOS
Linux
Module |
|
Header |
/Engine/Source/Runtime/SlateCore/Public/Types/SlateEnums.h |
Include |
#include "Types/SlateEnums.h" |
namespace EButtonPressMethod
{
enum Type
{
DownAndUp,
ButtonPress,
ButtonRelease,
}
}
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. |
Enumerates different methods that a button can be triggered with keyboard/controller. Normally, DownAndUp is appropriate.