libdonut
2.3.2
Application framework for cross-platform game development in C++20
|
#include <donut/events/Event.hpp>
Public Attributes | |
std::int64_t | touchDeviceId |
Touch device identifier. More... | |
std::int64_t | fingerId |
Finger identifier. More... | |
vec2 | normalizedFingerPosition |
Current finger position, normalized to the range [0, 1]. More... | |
vec2 | relativeNormalizedFingerMotion |
Finger offset relative to the previous position, normalized to the range [-1, 1]. More... | |
float | normalizedFingerPressure |
Amount of pressure applied, normalized to the range [0, 1]. More... | |
Public Attributes inherited from donut::events::InputEventBase | |
std::uint32_t | windowId |
Unique identifier of the window that this event belongs to, if any. More... | |
Touch Event base.
std::int64_t donut::events::TouchEventBase::touchDeviceId |
Touch device identifier.
std::int64_t donut::events::TouchEventBase::fingerId |
Finger identifier.
vec2 donut::events::TouchEventBase::normalizedFingerPosition |
Current finger position, normalized to the range [0, 1].
vec2 donut::events::TouchEventBase::relativeNormalizedFingerMotion |
Finger offset relative to the previous position, normalized to the range [-1, 1].
float donut::events::TouchEventBase::normalizedFingerPressure |
Amount of pressure applied, normalized to the range [0, 1].