|
libvirtualhid latest
Cross-platform C++ library for virtual HID devices.
|
#include <src/include/libvirtualhid/types.hpp>
Public Attributes | |
| float | absolute_x = 0.0F |
Absolute X coordinate with fractional precision, used when has_fractional_absolute_coordinates is true. | |
| float | absolute_y = 0.0F |
Absolute Y coordinate with fractional precision, used when has_fractional_absolute_coordinates is true. | |
| MouseButton | button = MouseButton::left |
Button used by MouseEventKind::button. | |
| bool | has_fractional_absolute_coordinates = false |
Whether absolute motion should use absolute_x and absolute_y instead of integer x and y. | |
| std::int32_t | height = 0 |
| Height of the absolute coordinate space. | |
| std::int32_t | high_resolution_scroll = 0 |
| High-resolution scroll distance. | |
| MouseEventKind | kind = MouseEventKind::relative_motion |
| Event category. | |
| bool | pressed = false |
| Whether the button is pressed. | |
| std::int32_t | width = 0 |
| Width of the absolute coordinate space. | |
| std::int32_t | x = 0 |
| Relative delta or absolute X coordinate in the supplied coordinate space. | |
| std::int32_t | y = 0 |
| Relative delta or absolute Y coordinate in the supplied coordinate space. | |
Mouse input event.