Navigation
API > API/Runtime > API/Runtime/Engine
References
| Module | Engine |
| Header | /Engine/Source/Runtime/Engine/Public/GestureRecognizer.h |
| Include | #include "GestureRecognizer.h" |
Syntax
class FGestureRecognizer
Variables
| Type | Name | Description | |
|---|---|---|---|
| float | AnchorDistanceSq | ||
| FVector2D[EKeys::NUM_TOUCH_KEYS] | AnchorPoints | Special gesture tracking values | |
| bool | bIsReadyForFlick | ||
| bool | bIsReadyForPinch | ||
| TMap< FKey, float > | CurrentGestureValues | A mapping of a gesture to it's current value (how far swiped, pinch amount, etc) | |
| FVector2D | FlickCurrent | ||
| float | FlickTime | ||
| FVector2D | LastPinchPoint_End | ||
| FVector2D | LastPinchPoint_Start | Special pinch tracking values | |
| int32 | PreviousTouchCount | ||
| float | StartAngle |
Constructors
| Type | Name | Description | |
|---|---|---|---|
| Constructor |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | DetectGestures
(
const FVector(&) Touches, |
Attempt to detect touch gestures | |
| void | HandleGesture
(
UPlayerInput* PlayerInput, |
Internal processing of gestures | |
| void | SetAnchorDistanceSquared
(
const FVector2D FirstPoint, |
Save the distance between the anchor points |