Gamedev Framework (gf) 1.2.0
A C++17 framework for 2D games
Public Attributes | List of all members
gf::TouchEvent Struct Reference

Touch event parameters (EventType::TouchBegan, EventType::TouchMoved, EventType::TouchEnded) More...

#include <gf/Event.h>

Public Attributes

int64_t finger
 Finger that touched. More...
 
Vector2i coords
 Position of the touch. More...
 
Vector2i motion
 Relative position of the touch. More...
 
float pressure
 The pressure applied (between 0 and 1) More...
 

Detailed Description

Touch event parameters (EventType::TouchBegan, EventType::TouchMoved, EventType::TouchEnded)

Member Data Documentation

◆ coords

Vector2i gf::TouchEvent::coords

Position of the touch.

◆ finger

int64_t gf::TouchEvent::finger

Finger that touched.

◆ motion

Vector2i gf::TouchEvent::motion

Relative position of the touch.

◆ pressure

float gf::TouchEvent::pressure

The pressure applied (between 0 and 1)