FGestureDetector

Copyright Epic Games, Inc. All Rights Reserved.

Windows
MacOS
Linux

References

Module

Slate

Header

/Engine/Source/Runtime/Slate/Public/Framework/Application/GestureDetector.h

Include

#include "Framework/Application/GestureDetector.h"

Syntax

class FGestureDetector

Remarks

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.

Functions

Name Description

Public function

void

 

GenerateGestures

Generates gesture messages for all enabled gestures.

Public function Static

bool

 

IsGestureSupported

(
    EGestureEvent Gesture
)

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

Public function

void

 

OnTouchEnded

(
    int32 TouchIndex,
    const FVector2D& Location
)

Public function

void

 

OnTouchMoved

(
    int32 TouchIndex,
    const FVector2D& Location
)

Public function

void

 

OnTouchStarted

(
    int32 TouchIndex,
    const FVector2D& Location
)

Constants

Name

Description

LongPressAllowedMovement

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

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

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss