Ember
A C++ 20 'game engine' built with SDL3 with wide platform support.
Public Member Functions | Public Attributes | List of all members
TouchPoint Struct Reference

#include <input_manager.h>

Public Member Functions

 TouchPoint ()=default
 
 TouchPoint (SDL_FingerID id, glm::vec2 pos, float press=1.0f)
 

Public Attributes

SDL_FingerID finger_id
 
bool active = false
 
glm::vec2 position {0.0f}
 
glm::vec2 pressure {0.0f}
 
glm::vec2 start_position {0.0f}
 
float start_time = 0.0f
 

Constructor & Destructor Documentation

◆ TouchPoint() [1/2]

TouchPoint::TouchPoint ( )
default

◆ TouchPoint() [2/2]

TouchPoint::TouchPoint ( SDL_FingerID  id,
glm::vec2  pos,
float  press = 1.0f 
)
inline

Member Data Documentation

◆ active

bool TouchPoint::active = false

◆ finger_id

SDL_FingerID TouchPoint::finger_id

◆ position

glm::vec2 TouchPoint::position {0.0f}

◆ pressure

glm::vec2 TouchPoint::pressure {0.0f}

◆ start_position

glm::vec2 TouchPoint::start_position {0.0f}

◆ start_time

float TouchPoint::start_time = 0.0f

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