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

Gesture recognition result. More...

#include <touch_input.h>

Public Attributes

TouchGesture gesture = TouchGesture::kNone
 
TouchPhase phase = TouchPhase::kBegan
 
ImVec2 position = ImVec2(0, 0)
 
ImVec2 start_position = ImVec2(0, 0)
 
ImVec2 translation = ImVec2(0, 0)
 
ImVec2 velocity = ImVec2(0, 0)
 
float scale = 1.0f
 
float scale_delta = 0.0f
 
float rotation = 0.0f
 
float rotation_delta = 0.0f
 
int touch_count = 0
 
double duration = 0.0
 

Detailed Description

Gesture recognition result.

Definition at line 52 of file touch_input.h.

Member Data Documentation

◆ gesture

TouchGesture yaze::gui::GestureState::gesture = TouchGesture::kNone

◆ phase

TouchPhase yaze::gui::GestureState::phase = TouchPhase::kBegan

Definition at line 54 of file touch_input.h.

Referenced by yaze::gui::CanvasTouchHandler::ProcessGesture().

◆ position

ImVec2 yaze::gui::GestureState::position = ImVec2(0, 0)

Definition at line 57 of file touch_input.h.

Referenced by yaze::gui::CanvasTouchHandler::ProcessGesture().

◆ start_position

ImVec2 yaze::gui::GestureState::start_position = ImVec2(0, 0)

Definition at line 58 of file touch_input.h.

◆ translation

ImVec2 yaze::gui::GestureState::translation = ImVec2(0, 0)

Definition at line 59 of file touch_input.h.

◆ velocity

ImVec2 yaze::gui::GestureState::velocity = ImVec2(0, 0)

Definition at line 60 of file touch_input.h.

Referenced by yaze::gui::CanvasTouchHandler::ProcessGesture().

◆ scale

float yaze::gui::GestureState::scale = 1.0f

Definition at line 63 of file touch_input.h.

◆ scale_delta

float yaze::gui::GestureState::scale_delta = 0.0f

Definition at line 64 of file touch_input.h.

◆ rotation

float yaze::gui::GestureState::rotation = 0.0f

Definition at line 65 of file touch_input.h.

◆ rotation_delta

float yaze::gui::GestureState::rotation_delta = 0.0f

Definition at line 66 of file touch_input.h.

◆ touch_count

int yaze::gui::GestureState::touch_count = 0

Definition at line 69 of file touch_input.h.

◆ duration

double yaze::gui::GestureState::duration = 0.0

Definition at line 72 of file touch_input.h.


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