UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
FGestureDetector Class Reference

#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
 

Detailed Description

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.

Member Function Documentation

◆ GenerateGestures()

void FGestureDetector::GenerateGestures ( FGenericApplicationMessageHandler MessageHandler,
const TBitArray< FDefaultBitArrayAllocator > &  EnabledGestures 
)

Generates gesture messages for all enabled gestures.

◆ IsGestureSupported()

bool FGestureDetector::IsGestureSupported ( EGestureEvent  Gesture)
static

Call to determine if the gesture is supported by the gesture detector.

◆ OnTouchEnded()

void FGestureDetector::OnTouchEnded ( int32  TouchIndex,
const FVector2D Location 
)

◆ OnTouchMoved()

void FGestureDetector::OnTouchMoved ( int32  TouchIndex,
const FVector2D Location 
)

◆ OnTouchStarted()

void FGestureDetector::OnTouchStarted ( int32  TouchIndex,
const FVector2D Location 
)

Member Data Documentation

◆ LongPressAllowedMovement

float FGestureDetector::LongPressAllowedMovement = 0
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.

◆ LongPressSeconds

double FGestureDetector::LongPressSeconds = 0.800f
static

The amount of time in seconds you hold a finger down before it's detected as a long press.


The documentation for this class was generated from the following files: