|
libvirtualhid latest
Cross-platform C++ library for virtual HID devices.
|
Touch contact event for touchscreen and trackpad devices. More...
#include <src/include/libvirtualhid/types.hpp>
Public Attributes | |
| float | contact_major_axis = 0.0F |
Contact major-axis size in viewport pixels, or 0.0 when unknown. | |
| float | contact_minor_axis = 0.0F |
Contact minor-axis size in viewport pixels, or 0.0 when unknown. | |
| std::int32_t | id = 0 |
| Consumer-stable contact identifier. | |
| std::int32_t | orientation = 0 |
Contact orientation in degrees, typically in the inclusive range [-90, 90]. | |
| float | pressure = 0.0F |
Normalized pressure in the inclusive range [0.0, 1.0]. | |
| bool | touching = true |
| Whether the contact is touching the surface. | |
| PointerViewport | viewport |
| Pixel viewport that receives the contact. | |
| float | x = 0.0F |
Normalized X coordinate in the inclusive range [0.0, 1.0]. | |
| float | y = 0.0F |
Normalized Y coordinate in the inclusive range [0.0, 1.0]. | |
Touch contact event for touchscreen and trackpad devices.