Navigation
Unreal Engine C++ API Reference > Runtime > SlateCore > Input
Inheritance Hierarchy
- FInputEvent
- FPointerEvent
- FDragDropEvent
References
Module | SlateCore |
Header | /Engine/Source/Runtime/SlateCore/Public/Input/Events.h |
Include | #include "Input/Events.h" |
Syntax
struct FPointerEvent : public FInputEvent
Remarks
FPointerEvent describes a mouse or touch action (e.g. Press, Release, Move, etc). It is passed to event handlers dealing with pointer-based input.
Constructors
Type | Name | Description | |
---|---|---|---|
![]() |
UStruct Constructor. Not meant for normal usage. | ||
![]() |
FPointerEvent
(
FInputDeviceId InDeviceId, |
||
![]() |
FPointerEvent
(
const FPointerEvent& Other, |
A constructor to alter cursor positions | |
![]() |
FPointerEvent
(
uint32 InPointerIndex, |
A constructor for raw mouse events | |
![]() |
FPointerEvent
(
uint32 InPointerIndex, |
Events are immutable once constructed. | |
![]() |
FPointerEvent
(
uint32 InUserIndex, |
||
![]() |
FPointerEvent
(
const UE::Slate::FDeprecateVector2DParameter& InScreenSpacePosition, |
A constructor for gesture events | |
![]() |
FPointerEvent
(
uint32 InUserIndex, |
||
![]() |
FPointerEvent
(
FInputDeviceId InDeviceId, |
||
![]() |
FPointerEvent
(
uint32 InUserIndex, |
Functions
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
const UE::Slate::FDeprecateVector2DResult & | Returns the distance the mouse traveled since the last event was handled. | |
![]() ![]() |
FKey | Mouse button that caused this event to be raised (possibly FKey::Invalid) | |
![]() ![]() |
const UE::Slate::FDeprecateVector2DResult & | Returns the change in gesture value since the last gesture event of the same type. | |
![]() ![]() |
EGestureEvent | Returns the type of touch gesture | |
![]() ![]() |
const UE::Slate::FDeprecateVector2DResult & | Returns the position of the cursor in screen space last time we handled an input event | |
![]() ![]() |
uint32 | Returns the unique identifier of the pointer (e.g., finger index) | |
![]() ![]() |
const TSet< FKey > & | Returns the full set of pressed buttons | |
![]() ![]() |
const UE::Slate::FDeprecateVector2DResult & | Returns The position of the cursor in screen space | |
![]() ![]() |
float | 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) | |
![]() ![]() |
uint32 | Returns the index of the touch pad that generated this event (for platforms with multiple touch pads per user) | |
![]() ![]() |
int32 | GetUserIndex () |
Returns the index of the user that caused the event |
![]() ![]() |
float | How much did the mouse wheel turn since the last mouse event | |
![]() ![]() |
bool | Is the gesture delta inverted | |
![]() ![]() |
bool | IsMouseButtonDown
(
FKey MouseButton |
Mouse buttons that are currently pressed |
![]() ![]() |
bool | IsTouchEvent () |
Is this event a result from a touch (as opposed to a mouse) |
![]() ![]() |
bool | Is this event a special first-move touch event | |
![]() ![]() |
bool | Is this event a special force-change touch event | |
![]() ![]() |
PointerEventType | MakeTranslatedEvent
(
const PointerEventType& InPointerEvent, |