Navigation
API > API/Runtime > API/Runtime/Slate
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.
| Name | FGestureDetector |
| Type | class |
| Header File | /Engine/Source/Runtime/Slate/Public/Framework/Application/GestureDetector.h |
| Include Path | #include "Framework/Application/GestureDetector.h" |
Syntax
class FGestureDetector
Structs
| Name | Remarks |
|---|---|
| FLongPressData |
Constants
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| LongPressAllowedMovement | float | The amount of movement allowed before the finger is no longer considered valid for a long press, until it's removed and re-pressed. | Framework/Application/GestureDetector.h |
| LongPressSeconds | double | The amount of time in seconds you hold a finger down before it's detected as a long press. | Framework/Application/GestureDetector.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| LongPressTrack | FLongPressData | Framework/Application/GestureDetector.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void GenerateGestures
(
FGenericApplicationMessageHandler& MessageHandler, |
Generates gesture messages for all enabled gestures. | Framework/Application/GestureDetector.h | |
void OnTouchEnded
(
int32 TouchIndex, |
Framework/Application/GestureDetector.h | ||
void OnTouchMoved
(
int32 TouchIndex, |
Framework/Application/GestureDetector.h | ||
void OnTouchStarted
(
int32 TouchIndex, |
Framework/Application/GestureDetector.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static bool IsGestureSupported
(
EGestureEvent Gesture |
Call to determine if the gesture is supported by the gesture detector. | Framework/Application/GestureDetector.h |