|
libdonut 2.3.6
Application framework for cross-platform game development in C++20
|
#include <donut/events/Event.hpp>
Public Attributes | |
| std::int64_t | touchDeviceId |
| Touch device identifier. | |
| std::int64_t | fingerId |
| Finger identifier. | |
| 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 donut::events::InputEventBase | |
| std::uint32_t | windowId |
| Unique identifier of the window that this event belongs to, if any. | |
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].