Navigation
API > API/Runtime > API/Runtime/Slate > API/Runtime/Slate/Framework > API/Runtime/Slate/Framework/Application
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
| Type | Name | Description | |
|---|---|---|---|
| void | GenerateGestures
(
FGenericApplicationMessageHandler& MessageHandler, |
Generates gesture messages for all enabled gestures. | |
| bool | IsGestureSupported
(
EGestureEvent Gesture |
Call to determine if the gesture is supported by the gesture detector. | |
| void | OnTouchEnded
(
int32 TouchIndex, |
||
| void | OnTouchMoved
(
int32 TouchIndex, |
||
| void | OnTouchStarted
(
int32 TouchIndex, |
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. |