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

Select Skin
Light
Dark

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback