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

Common gamepad input state accepted by libvirtualhid. More...

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

Collaboration diagram for lvh::GamepadState:
[legend]

Public Attributes

std::optional< Vector3acceleration
 Accelerometer data in meters per second squared, when available.
 
std::optional< GamepadBatterybattery
 Battery metadata, when available.
 
ButtonSet buttons
 Pressed button set.
 
std::optional< Vector3gyroscope
 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.
 

Detailed Description

Common gamepad input state accepted by libvirtualhid.


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