FGestureRecognizer

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Public/GestureRecognizer.h

Include

#include "GestureRecognizer.h"

Syntax

class FGestureRecognizer

Variables

Name Description

Protected variable

float

 

AnchorDistanceSq

Protected variable

FVector2D[EKeys...

 

AnchorPoints

Special gesture tracking values

Protected variable

bool

 

bIsReadyForFlick

Protected variable

bool

 

bIsReadyForPinch

Protected variable

TMap< FKey, flo...

 

CurrentGestureValues

A mapping of a gesture to it's current value (how far swiped, pinch amount, etc)

Protected variable

FVector2D

 

FlickCurrent

Protected variable

float

 

FlickTime

Protected variable

FVector2D

 

LastPinchPoint_End

Protected variable

FVector2D

 

LastPinchPoint_Start

Special pinch tracking values

Protected variable

int32

 

PreviousTouchCount

Protected variable

float

 

StartAngle

Constructors

Name Description

Public function

FGestureRecognizer()

Constructor

Functions

Name Description

Public function

void

 

DetectGestures

(
    const FVector Touches,
    UPlayerInput* PlayerInput,
    float DeltaTime
)

Attempt to detect touch gestures

Protected function

void

 

HandleGesture

(
    UPlayerInput* PlayerInput,
    FKey Gesture,
    bool bStarted,
    bool bEnded
)

Internal processing of gestures

Public function

void

 

SetAnchorDistanceSquared

(
    const FVector2D FirstPoint,
    const FVector2D SecontPoint
)

Save the distance between the anchor points

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