mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-04-26 17:24:27 +00:00
Allow vendor matching for hid_enumerate() on all backends
This commit is contained in:
@@ -568,8 +568,8 @@ struct hid_device_info HID_API_EXPORT *hid_enumerate(unsigned short vendor_id,
|
||||
dev_pid = get_product_id(dev);
|
||||
|
||||
/* Check the VID/PID against the arguments */
|
||||
if ((vendor_id == 0x0 && product_id == 0x0) ||
|
||||
(vendor_id == dev_vid && product_id == dev_pid)) {
|
||||
if ((vendor_id == 0x0 || dev_vid == vendor_id) &&
|
||||
(product_id == 0x0 || dev_pid == product_id)) {
|
||||
struct hid_device_info *tmp;
|
||||
|
||||
/* VID/PID match. Create the record. */
|
||||
|
||||
Reference in New Issue
Block a user