GREM 3.12.0
Game/Rendering Engine Modules for C++
Loading...
Searching...
No Matches
grem::events::TouchEventBase Struct Reference

Touch Event base. More...

#include <GREM/events/Event.hpp>

Inheritance diagram for grem::events::TouchEventBase:

Public Attributes

uint64_t touchDeviceID
 Touch device identifier.
uint64_t fingerID
 Finger identifier, or 0xFFFFFFFF if it was emulated by mouse input.
vec2 normalizedFingerPosition
 Current finger position, normalized to the range [0, 1].
vec2 relativeNormalizedFingerMotion
 Finger offset relative to the previous position, normalized to the range [-1, 1].
float normalizedFingerPressure
 Amount of pressure applied, normalized to the range [0, 1].
Public Attributes inherited from grem::events::InputEventBase
uint32_t windowID
 Unique identifier of the window that this event belongs to, if any.
Public Attributes inherited from grem::events::EventBase
TimePoint timestamp
 Timestamp of the event.

Detailed Description

Touch Event base.

Member Data Documentation

◆ touchDeviceID

uint64_t grem::events::TouchEventBase::touchDeviceID

Touch device identifier.

◆ fingerID

uint64_t grem::events::TouchEventBase::fingerID

Finger identifier, or 0xFFFFFFFF if it was emulated by mouse input.

◆ normalizedFingerPosition

vec2 grem::events::TouchEventBase::normalizedFingerPosition

Current finger position, normalized to the range [0, 1].

◆ relativeNormalizedFingerMotion

vec2 grem::events::TouchEventBase::relativeNormalizedFingerMotion

Finger offset relative to the previous position, normalized to the range [-1, 1].

◆ normalizedFingerPressure

float grem::events::TouchEventBase::normalizedFingerPressure

Amount of pressure applied, normalized to the range [0, 1].


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