Closed bsiever closed 2 years ago
Seems to have sticks / buttons, but not D-pad/arrow support.
See: http://www.freebsddiary.org/APC/usb_hid_usages.php for D-pad support.
Nintendo controllers with HID report details: http://45.55.158.144/p/usb/
See https://eleccelerator.com/tutorial-about-usb-hid-report-descriptors/ for x/y/z/rx issues.
Semantics: Figure out a good way to do bitfields for buttons.
Testing: Do more...
Windows may need to use a re-mapper or install a driver (Remapper: https://github.com/x360ce/x360ce)
iOS only does MFi approved, Xbox, and Playstation. Is a "good enough" HID descriptor enough or does it do other things to authenticate the controller? (Well, it truly authenticates the MFi ones.)
Apple's support page: https://support.apple.com/en-us/HT210414 XBox descriptor: https://www.psdevwiki.com/ps4/DS4-USB (Multiple report IDs)
I'm marking this "kinda done". It works for some games (not on iOS). May have to revisit the full XBox controller behavior at some point.
Add Gamepad support.
Some examples to draw from: