MayaFlux 0.5.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 38 of file InputBinding.cpp.

39{
40 return {
41 .backend = InputType::HID,
42 .device_id = 0,
43 .hid_vendor_id = vid,
44 .hid_product_id = pid
45 };
46}
@ 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: