mirror of
https://github.com/libretro/RetroArch
synced 2025-02-02 14:54:10 +00:00
cdd39a6364
* MacOS: Fix sixaxis on MacOS 12.x == DETAILS Mac OS 12.x "Monterey" dropped some built-in support for the Sixaxis controller--exactly what changed is unclear, but other projects reported similar issues with the OS. This commit ports the work done on SDL, which is basically to read two feature reports after writing out the activation report. I think we did this at one point in the past, but it got lost among HID driver rewrites. I've tested this locally and it resolves the issue; after connecting the sixaxis and pressing the Playstation button, the pad is registered and works successfully. I have not tested this on other platforms. * Gracefully handle incomplete HID implementations == DETAILS Not all HID drivers implement all HID methods; since this controller has a magic sequence that requires the ability to set and get HID reports, we need to make sure we don't crash if we're running on an incomplete implementation. - Add a null check for the driver methods and log useful info if checks fail - Fix minor formatting