Choose your operating system:
Windows
macOS
Linux
| FInputEvent
|
Module |
|
Header |
/Engine/Source/Runtime/SlateCore/Public/Input/Events.h |
Include |
#include "Input/Events.h" |
struct FPointerEvent : public FInputEvent
FPointerEvent describes a mouse or touch action (e.g. Press, Release, Move, etc). It is passed to event handlers dealing with pointer-based input.
Name | Description | |
---|---|---|
|
FPointerEvent() |
UStruct Constructor. Not meant for normal usage. |
|
FPointerEvent ( |
A constructor to alter cursor positions |
|
FPointerEvent |
A constructor for raw mouse events |
|
FPointerEvent |
Events are immutable once constructed. |
|
FPointerEvent |
|
|
FPointerEvent |
FPointerEvent constructor now takes a Force parameter |
|
FPointerEvent ( |
A constructor for gesture events |
|
FPointerEvent |
|
|
FPointerEvent |
Name | Description | ||
---|---|---|---|
|
const FVecto... |
GetCursorDelta() |
Returns the distance the mouse traveled since the last event was handled. |
|
GetEffectingButton() |
Mouse button that caused this event to be raised (possibly FKey::Invalid) |
|
|
const FVecto... |
GetGestureDelta() |
Returns the change in gesture value since the last gesture event of the same type. |
|
EGestureEven... |
GetGestureType() |
Returns the type of touch gesture |
|
const FVecto... |
GetLastScreenSpacePosition() |
Returns the position of the cursor in screen space last time we handled an input event |
|
GetPointerIndex() |
Returns the unique identifier of the pointer (e.g., finger index) |
|
|
const TSet< ... |
GetPressedButtons() |
Returns the full set of pressed buttons |
|
const FVecto... |
GetScreenSpacePosition() |
Returns The position of the cursor in screen space |
|
float |
GetTouchForce() |
Returns the force of a touch (1.0f is mapped to an general touch force, < 1 is "light", > 1 is "heavy", and 10 is the max force possible) |
|
GetTouchpadIndex() |
Returns the index of the touch pad that generated this event (for platforms with multiple touch pads per user) |
|
|
GetUserIndex() |
Returns the index of the user that caused the event |
|
|
float |
GetWheelDelta() |
How much did the mouse wheel turn since the last mouse event |
|
IsDirectionInvertedFromDevice() |
Is the gesture delta inverted |
|
|
IsMouseButtonDown ( |
Mouse buttons that are currently pressed |
|
|
IsTouchEvent() |
Is this event a result from a touch (as opposed to a mouse) |
|
|
IsTouchFirstMoveEvent() |
Is this event a special first-move touch event |
|
|
IsTouchForceChangedEvent() |
Is this event a special force-change touch event |
|
|
PointerEvent... |
MakeTranslatedEvent ( |
Name | Description | ||
---|---|---|---|
|
IsPointerEvent() |
Is this event a pointer event (touch or cursor). |
|
|
ToText() |
Name | Description | ||
---|---|---|---|
|
operator= ( |
We override the assignment operator to allow generated code to compile with the const ref member. |
Name | Description | ||
---|---|---|---|
|
FPointerEvent |
FPointerEvent constructor now takes a Force parameter |