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

◆ find_hid_device()

std::optional< InputDeviceInfo > MayaFlux::Core::InputSubsystem::find_hid_device ( uint16_t  vendor_id,
uint16_t  product_id 
) const

Find HID device by vendor/product ID.

Definition at line 382 of file InputSubsystem.cpp.

385{
386 auto devices = get_hid_devices();
387 for (const auto& dev : devices) {
388 if (dev.vendor_id == vendor_id && dev.product_id == product_id) {
389 return dev;
390 }
391 }
392 return std::nullopt;
393}
std::vector< InputDeviceInfo > get_hid_devices() const
Get all HID devices.

References get_hid_devices().

Referenced by MayaFlux::find_hid_device().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: