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
| Returns | Name | Description |
|---|---|---|
void | SetSettings | |
const FTouchGestureSettings& | GetSettings | |
void | Tick | |
void | Reset | |
const FTouchGestureFrame& | GetFrame | |
bool | DirectionMatches | A swipe whose dominant axis matches; Any matches every direction. |
EGestureDirection | DirectionOf |
Function details
SetSettings
C++
void SetSettings(const FTouchGestureSettings& settings)GetSettings
C++
const FTouchGestureSettings& GetSettings() constTick
C++
void Tick(const TouchInput& touch, float deltaSeconds)Reset
C++
void Reset()GetFrame
C++
const FTouchGestureFrame& GetFrame() constDirectionMatches
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