Touch Interface Designer 2025.2
Create touch interface with a visual editor and manage all mobile inputs like gestures
Loading...
Searching...
No Matches
FGesturesConfig Struct Reference

#include <TouchInterfaceSettings.h>

Public Member Functions

 FGesturesConfig ()

Public Attributes

 Category ="Tap"
EditDefaultsOnly float TapTime
EditDefaultsOnly float LongPressDuration
EditDefaultsOnly float MovementThreshold
EditDefaultsOnly uint8 bSendDragAfterLongPress:1
EditDefaultsOnly uint8 bBlockDragIfSlideIsDetected:1
 EditDefaultsOnly
 meta
EditDefaultsOnly float SwipeThreshold
EditDefaultsOnly float SwipeVelocityThreshold
EditDefaultsOnly float TwoFingerSwipeClosenessThreshold
EditDefaultsOnly float MinimumDeltaToSendEvent
EditDefaultsOnly uint8 bSendDragEventWhenZoomOrRotateGestureDetected:1

Constructor & Destructor Documentation

◆ FGesturesConfig()

FGesturesConfig::FGesturesConfig ( )
inline

Member Data Documentation

◆ bBlockDragIfSlideIsDetected

EditDefaultsOnly uint8 FGesturesConfig::bBlockDragIfSlideIsDetected

◆ bSendDragAfterLongPress

EditDefaultsOnly uint8 FGesturesConfig::bSendDragAfterLongPress

◆ bSendDragEventWhenZoomOrRotateGestureDetected

EditDefaultsOnly uint8 FGesturesConfig::bSendDragEventWhenZoomOrRotateGestureDetected

◆ Category

FGesturesConfig::Category ="Tap"

Max time to detect tap. Multi tap can be detected in this amount of time For single tap, a value of 0.1 seems correct For double tap, a value of 0.18 seems correct For multi tap, a value > 0.2 seems correct but it depend how many tap you want to detect because it's difficult to user to tap four time in 0.2 second...

The amount of time in seconds you hold a finger down before it's detected as a long press.

The amount of movement allowed before the finger is no longer considered valid for a Tap or Long press, until it's removed and re-pressed. If with a mouse, a value of 1 seems correct, with a finger, the value must be higher due to the contact surface with the screen. A value of 10 seems sufficient.

Drag event is called when finger movement is detected. If this option is enabled, Drag event is called only if a long press is detected

By default, Slide and Drag events can be sent at the same time. With this option enabled, if a slide is detected, no drag event is sent.

Threshold for slide and swipe detection. the higher the value, the more precise the detection. It therefore requires a more precise horizontal or vertical movement on the part of the user.

The amount of length in pixel from start a finger should make before it's detected as a swipe.

The amount of Velocity a finger should make before it's detected as a swipe. (Swipe Distance / Touch Duration)

The maximum distance in pixel allowed between the two fingers to detect a two-finger swipe. 0 disable this feature due to the contact surface with the screen for finger.

Used to avoid stray movements (micro movement) caused by finger contact surface with the screen. A value of 1 seems correct

Allow system to send drag event when zoom or rotate gesture detected. Useful when you want to move something in combination with zoom and rotate

◆ EditDefaultsOnly

FGesturesConfig::EditDefaultsOnly

◆ LongPressDuration

EditDefaultsOnly float FGesturesConfig::LongPressDuration

◆ meta

FGesturesConfig::meta
Initial value:
=(ClampMin=0.8f, ClampMax=1.0f))
float DirectionThreshold

◆ MinimumDeltaToSendEvent

EditDefaultsOnly float FGesturesConfig::MinimumDeltaToSendEvent

◆ MovementThreshold

EditDefaultsOnly float FGesturesConfig::MovementThreshold

◆ SwipeThreshold

EditDefaultsOnly float FGesturesConfig::SwipeThreshold

◆ SwipeVelocityThreshold

EditDefaultsOnly float FGesturesConfig::SwipeVelocityThreshold

◆ TapTime

EditDefaultsOnly float FGesturesConfig::TapTime

◆ TwoFingerSwipeClosenessThreshold

EditDefaultsOnly float FGesturesConfig::TwoFingerSwipeClosenessThreshold

The documentation for this struct was generated from the following file:
  • D:/MEGA/TouchProject/TouchProjectNext/Plugins/TouchInterfaceDesigner/Source/TouchInterface/Public/Settings/TouchInterfaceSettings.h