libsdl-org / SDL

Simple Directmedia Layer
https://libsdl.org
zlib License
9.52k stars 1.77k forks source link

Game controller support matrix #10593

Open LIJI32 opened 1 month ago

LIJI32 commented 1 month ago

A frequent pain point I have with SDL game controllers is not being able to easily tell how "well" SDL supports each of the many controllers my users use, and I end up having to dig in the source to tell if SDL supports certain features (e.g. rumble) with certain controllers. It would be very helpful to have some sort of support matrix with the list of compatible controllers and the features SDL supports for each controller (e.g. rumble, motion controls, player LEDs, etc). Thanks!

slouken commented 1 month ago

This is a good idea, but depends on what driver is being used, which varies based on the support available on the customer's system. The best way to handle things is to check the supported capabilities in SDL3 or just assume all functionality is available if you don't need to surface UI about it to users.

LIJI32 commented 1 month ago

This is what I do, the issue is that users end up opening bug reports about certain controllers not getting rumble or motion controls, and I have no easy way to tell if it's a bug or simply lack of support in SDL =/

slouken commented 1 month ago

Sure, I'll see if I can write something up for SDL3. If you already have this work in progress, feel free to create a PR.