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

Descriptor and identity data used to create a virtual device. More...

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

Collaboration diagram for lvh::DeviceProfile:
[legend]

Public Attributes

BusType bus_type = BusType::usb
 Transport bus identity advertised by the profile.
 
GamepadProfileCapabilities capabilities
 Profile feature flags.
 
DeviceType device_type = DeviceType::gamepad
 Device category for this profile.
 
GamepadProfileKind gamepad_kind = GamepadProfileKind::generic
 Built-in gamepad profile identifier.
 
std::size_t input_report_size = 0
 Expected packed input report size in bytes.
 
std::string manufacturer
 Human-readable device manufacturer.
 
std::string name
 Human-readable device name.
 
std::size_t output_report_size = 0
 Expected packed output report size in bytes, or 0 when none is defined.
 
std::uint16_t product_id = 0
 USB-style product identifier.
 
std::vector< std::uint8_t > report_descriptor
 HID report descriptor bytes.
 
std::uint8_t report_id = 1
 Primary input report identifier.
 
std::uint16_t vendor_id = 0
 USB-style vendor identifier.
 
std::uint16_t version = 0
 Device version number.
 

Detailed Description

Descriptor and identity data used to create a virtual device.


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