MayaFlux 0.2.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ hid_by_vid_pid()

InputBinding MayaFlux::Core::InputBinding::hid_by_vid_pid ( uint16_t  vid,
uint16_t  pid 
)
static

Bind to HID device by vendor/product ID.

Parameters
vidUSB Vendor ID
pidUSB Product ID

Matches any device with this VID/PID, regardless of enumeration order. Useful for binding to specific controller models.

Definition at line 33 of file InputBinding.cpp.

34{
35 return {
36 .backend = InputType::HID,
37 .device_id = 0,
38 .hid_vendor_id = vid,
39 .hid_product_id = pid
40 };
41}
@ HID
Generic HID devices (game controllers, custom hardware)

References backend, and MayaFlux::Core::HID.

Referenced by MayaFlux::bind_hid().

+ Here is the caller graph for this function: