class

TouchGestureRecognizer

Turns the per-frame TouchInput snapshot into gestures. Driven by Tick(), so tests feed it synthetic touches and a dt without a window, and replays of a recording produce the same gestures the live run did.

Module
Input
Header
#include "Input/TouchGesture.h"
Namespace
Mowo

Public functions

ReturnsNameDescription
voidSetSettings
const FTouchGestureSettings&GetSettings
voidTick
voidReset
const FTouchGestureFrame&GetFrame
boolDirectionMatchesA swipe whose dominant axis matches; Any matches every direction.
EGestureDirectionDirectionOf

Function details

SetSettings

C++
void SetSettings(const FTouchGestureSettings& settings)

GetSettings

C++
const FTouchGestureSettings& GetSettings() const

Tick

C++
void Tick(const TouchInput& touch, float deltaSeconds)

Reset

C++
void Reset()

GetFrame

C++
const FTouchGestureFrame& GetFrame() const

DirectionMatches

C++
static bool DirectionMatches(EGestureDirection wanted, EGestureDirection actual)

A swipe whose dominant axis matches; Any matches every direction.

DirectionOf

C++
static EGestureDirection DirectionOf(float dx, float dy)
Generated from Input/TouchGesture.h via input.json · Dec 5, 2026Version 1.1.0