mirror of
https://github.com/RPCS3/rpcs3.git
synced 2024-09-29 07:21:20 +00:00
macOS: Fix DS3 init on Monterey
This commit is contained in:
parent
5920372929
commit
d2897bc6a0
2
3rdparty/hidapi/hidapi
vendored
2
3rdparty/hidapi/hidapi
vendored
@ -1 +1 @@
|
||||
Subproject commit c47734cb076881097e241ed691691793075a93a3
|
||||
Subproject commit 8ff2deec755c4cdf9515930ecb4a94ec17bc98d1
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user