macOS: Fix DS3 init on Monterey
This commit is contained in:
Vendored
+1
-1
Submodule 3rdparty/hidapi/hidapi updated: c47734cb07...8ff2deec75
@@ -292,6 +292,14 @@ void ds3_pad_handler::check_add_device(hid_device* hidDevice, std::string_view p
|
||||
return;
|
||||
}
|
||||
device->report_id = buf[0];
|
||||
#elif defined (__APPLE__)
|
||||
int res = hid_init_sixaxis_usb(hidDevice);
|
||||
if (res < 0)
|
||||
{
|
||||
ds3_log.error("check_add_device: hid_init_sixaxis_usb failed! (result=%d, error=%s)", res, hid_error(hidDevice));
|
||||
hid_close(hidDevice);
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
|
||||
for (wchar_t ch : wide_serial)
|
||||
|
||||
Reference in New Issue
Block a user