mirror of
https://github.com/RPCS3/rpcs3.git
synced 2026-06-01 12:15:27 -06: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;
|
return;
|
||||||
}
|
}
|
||||||
device->report_id = buf[0];
|
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
|
#endif
|
||||||
|
|
||||||
for (wchar_t ch : wide_serial)
|
for (wchar_t ch : wide_serial)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user