MayaFlux 0.2.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 388 of file InputSubsystem.cpp.

391{
392 auto devices = get_hid_devices();
393 for (const auto& dev : devices) {
394 if (dev.vendor_id == vendor_id && dev.product_id == product_id) {
395 return dev;
396 }
397 }
398 return std::nullopt;
399}
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: