Choose your operating system:
Windows
macOS
Linux
Module |
|
Header |
/Engine/Source/Runtime/SlateCore/Public/Types/SlateEnums.h |
Include |
#include "Types/SlateEnums.h" |
namespace EButtonClickMethod
{
enum Type
{
DownAndUp,
MouseDown,
MouseUp,
PreciseClick,
}
}
Name |
Description |
---|---|
DownAndUp |
User must press the button, then release while over the button to trigger the click. |
MouseDown |
Click will be triggered immediately on mouse down, and mouse will not be captured. |
MouseUp |
Click will always be triggered when mouse button is released over the button, even if the button wasn't pressed down over it. |
PreciseClick |
Inside a list, buttons can only be clicked with precise tap. |
Enumerates different methods that a button click can be triggered. Normally, DownAndUp is appropriate.