![]() |
libvirtualhid 15
Cross-platform C++ library for virtual HID devices.
|
Common gamepad input state accepted by libvirtualhid. More...
#include <src/include/libvirtualhid/types.hpp>
Public Attributes | |
| std::optional< Vector3 > | acceleration |
| Accelerometer data in meters per second squared, when available. | |
| std::optional< GamepadBattery > | battery |
| Battery metadata, when available. | |
| ButtonSet | buttons |
| Pressed button set. | |
| std::optional< Vector3 > | gyroscope |
| Gyroscope data in degrees per second, when available. | |
| Stick | left_stick |
| Left stick state. | |
| float | left_trigger = 0.0F |
Left trigger value in the inclusive range [0.0, 1.0]. | |
| Stick | right_stick |
| Right stick state. | |
| float | right_trigger = 0.0F |
Right trigger value in the inclusive range [0.0, 1.0]. | |
| std::array< GamepadTouchContact, 2 > | touchpad_contacts {} |
| Gamepad touchpad contacts. | |
Common gamepad input state accepted by libvirtualhid.