nomlib
Loading...
Searching...
No Matches
nom::FingerTouchEvent Struct Reference

A structure containing information on a finger touch event. More...

#include <Event.hpp>

Public Attributes

TouchID id
 The touch device index identifier.
FingerEvent finger
 The finger index identifier.
float x
 The X coordinate of the event; normalized 0..1.
float y
 The Y coordinate of the event; normalized 0..1.
float dx
 The distance moved in the X axis; normalized 0..1.
float dy
 The distance moved in the Y axis; normalized 0..1.
float pressure
 The quantity of the pressure applied; normalized 0..1.

Detailed Description

A structure containing information on a finger touch event.

Remarks
SDL_FINGERMOTION, SDL_FINGERDOWN, or SDL_FINGERUP.

Definition at line 355 of file Event.hpp.

Member Data Documentation

◆ dx

float nom::FingerTouchEvent::dx

The distance moved in the X axis; normalized 0..1.

Definition at line 370 of file Event.hpp.

◆ dy

float nom::FingerTouchEvent::dy

The distance moved in the Y axis; normalized 0..1.

Definition at line 373 of file Event.hpp.

◆ finger

FingerEvent nom::FingerTouchEvent::finger

The finger index identifier.

Definition at line 361 of file Event.hpp.

◆ id

TouchID nom::FingerTouchEvent::id

The touch device index identifier.

Definition at line 358 of file Event.hpp.

◆ pressure

float nom::FingerTouchEvent::pressure

The quantity of the pressure applied; normalized 0..1.

Definition at line 376 of file Event.hpp.

◆ x

float nom::FingerTouchEvent::x

The X coordinate of the event; normalized 0..1.

Definition at line 364 of file Event.hpp.

◆ y

float nom::FingerTouchEvent::y

The Y coordinate of the event; normalized 0..1.

Definition at line 367 of file Event.hpp.


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