mirror of
https://github.com/libretro/RetroArch
synced 2025-02-07 21:39:54 +00:00
== DETAILS Use a little trickery to ensure the GCA driver continues working with other HID implementation. I've expanded the joypad implementation to support multi-pad devices. However, this requires changes to each HID implementation to actually function. I've made the necessary changes for WIIU, but I don't have the means of making the change in the other HID implementations. So, I've built in a backwards-compatibilty mode for the driver. The trick is to have an identifier byte at the top of both data structs that the driver returns. We can then use that byte to determine which of the structs has been passed to the pad functions and act accordingly. In the GCA case, for non-wiiu platforms, it will simply expose port 1 of the GCA and the other 3 ports do nothing.