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

Consumer-provided metadata for a gamepad device. More...

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

Public Attributes

int client_relative_index = -1
 Stable index within the client session, or -1 if unset.
 
ClientControllerType client_type = ClientControllerType::unknown
 Controller family reported by the client.
 
int global_index = -1
 Stable index across all connected controllers, or -1 if unset.
 
bool has_battery = false
 Whether the client reports battery state capability.
 
bool has_motion_sensors = false
 Whether the client reports motion sensor capability.
 
bool has_rgb_led = false
 Whether the client reports RGB LED capability.
 
bool has_touchpad = false
 Whether the client reports touchpad capability.
 
std::string stable_id
 Consumer-defined stable identity string.
 

Detailed Description

Consumer-provided metadata for a gamepad device.


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