Open hajimehoshi opened 2 years ago
I investigated this a while back and wrote a blog post on it: https://www.silbinarywolf.com/post/189934380218/you-cant-just-query-if-a-controller-is-for-xbox
tldr; Xbox controllers gamepad button positions are fairly stable but Playstation and other gamepad button layouts vary from gamepad to gamepad. So your best bet is using this community sourced database of gamepad names / layouts if you were going to implement something like this.
Ebiten actually uses the same database. My intention here is to add a more reliable way to detect the gamepad type rather than names.
Requested by @wasedaigo
Now we can do a similar thing by parsing the gamepad name, but this is very fragile.