![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <GestureDetector.h>
Public Member Functions | |
| void | OnTouchStarted (int32 TouchIndex, const FVector2D &Location) |
| void | OnTouchEnded (int32 TouchIndex, const FVector2D &Location) |
| void | OnTouchMoved (int32 TouchIndex, const FVector2D &Location) |
| void | GenerateGestures (FGenericApplicationMessageHandler &MessageHandler, const TBitArray< FDefaultBitArrayAllocator > &EnabledGestures) |
Static Public Member Functions | |
| static bool | IsGestureSupported (EGestureEvent Gesture) |
Static Public Attributes | |
| static double | LongPressSeconds = 0.800f |
| static float | LongPressAllowedMovement = 0 |
The gesture detector can simulate the detection of certain kinds of gestures that may or may not be available to be detected at the platform level.
| void FGestureDetector::GenerateGestures | ( | FGenericApplicationMessageHandler & | MessageHandler, |
| const TBitArray< FDefaultBitArrayAllocator > & | EnabledGestures | ||
| ) |
Generates gesture messages for all enabled gestures.
|
static |
Call to determine if the gesture is supported by the gesture detector.
|
static |
The amount of movement allowed before the finger is no longer considered valid for a long press, until it's removed and re-pressed.
|
static |
The amount of time in seconds you hold a finger down before it's detected as a long press.