mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-07-24 01:30:31 +00:00
Added support for Xbox controllers via libusb on macOS
A number of third party Xbox controllers are not supported by macOS, but work with libusb and the SDL HIDAPI driver.
This commit is contained in:
@@ -906,7 +906,7 @@ static struct hid_device_info * create_device_info_for_device(struct udev_device
|
||||
|
||||
cur_dev = root;
|
||||
while (cur_dev) {
|
||||
if (HIDAPI_IGNORE_DEVICE(cur_dev->bus_type, cur_dev->vendor_id, cur_dev->product_id, cur_dev->usage_page, cur_dev->usage, false)) {
|
||||
if (HIDAPI_IGNORE_DEVICE(cur_dev->bus_type, cur_dev->vendor_id, cur_dev->product_id, cur_dev->usage_page, cur_dev->usage, false, false)) {
|
||||
struct hid_device_info *tmp = cur_dev;
|
||||
|
||||
cur_dev = tmp->next;
|
||||
|
||||
Reference in New Issue
Block a user