libvirtualhid 16
Cross-platform C++ library for virtual HID devices.
lvh::TouchContact Struct Reference

Touch contact event for touchscreen and trackpad devices. More...

#include <src/include/libvirtualhid/types.hpp>

Public Attributes

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].
 
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].
 

Detailed Description

Touch contact event for touchscreen and trackpad devices.


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