yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
yaze::gui::TouchConfig Struct Reference

Touch input configuration. More...

#include <touch_input.h>

Public Attributes

float tap_max_duration = 0.3f
 
float double_tap_max_delay = 0.3f
 
float long_press_duration = 0.5f
 
float tap_max_movement = 10.0f
 
float pan_threshold = 10.0f
 
float pinch_threshold = 5.0f
 
float rotation_threshold = 0.1f
 
bool enable_pan_zoom = true
 
bool enable_rotation = false
 
bool enable_inertia = true
 
float inertia_deceleration = 0.95f
 
float inertia_min_velocity = 0.5f
 
float min_zoom = 0.25f
 
float max_zoom = 4.0f
 

Detailed Description

Touch input configuration.

Definition at line 78 of file touch_input.h.

Member Data Documentation

◆ tap_max_duration

float yaze::gui::TouchConfig::tap_max_duration = 0.3f

Definition at line 80 of file touch_input.h.

◆ double_tap_max_delay

float yaze::gui::TouchConfig::double_tap_max_delay = 0.3f

Definition at line 81 of file touch_input.h.

◆ long_press_duration

float yaze::gui::TouchConfig::long_press_duration = 0.5f

Definition at line 82 of file touch_input.h.

◆ tap_max_movement

float yaze::gui::TouchConfig::tap_max_movement = 10.0f

Definition at line 85 of file touch_input.h.

◆ pan_threshold

float yaze::gui::TouchConfig::pan_threshold = 10.0f

Definition at line 86 of file touch_input.h.

◆ pinch_threshold

float yaze::gui::TouchConfig::pinch_threshold = 5.0f

Definition at line 87 of file touch_input.h.

◆ rotation_threshold

float yaze::gui::TouchConfig::rotation_threshold = 0.1f

Definition at line 88 of file touch_input.h.

◆ enable_pan_zoom

bool yaze::gui::TouchConfig::enable_pan_zoom = true

Definition at line 91 of file touch_input.h.

◆ enable_rotation

bool yaze::gui::TouchConfig::enable_rotation = false

Definition at line 92 of file touch_input.h.

◆ enable_inertia

bool yaze::gui::TouchConfig::enable_inertia = true

Definition at line 93 of file touch_input.h.

◆ inertia_deceleration

float yaze::gui::TouchConfig::inertia_deceleration = 0.95f

Definition at line 96 of file touch_input.h.

◆ inertia_min_velocity

float yaze::gui::TouchConfig::inertia_min_velocity = 0.5f

Definition at line 97 of file touch_input.h.

◆ min_zoom

float yaze::gui::TouchConfig::min_zoom = 0.25f

Definition at line 100 of file touch_input.h.

◆ max_zoom

float yaze::gui::TouchConfig::max_zoom = 4.0f

Definition at line 101 of file touch_input.h.


The documentation for this struct was generated from the following file: