oakmound/oak

Handle different types of controllers

Opened this issue · 2 comments

Different types of controllers (mainly xbox vs nintendo) use different button ids for different buttons. We should handle this (currently dpad left could be interpreted as RT, and some button just crash everything).

I am currently working on reworking driver_linux.go to work with my current controller, but I only have one type of controller, so I wont be able to test xbox support.

There's a database that has a lot of gamepad mappings and maps then to an Xbox type layout. It's what sdl and glfw use for them. It'll be very helpful for this 😊https://github.com/gabomdq/SDL_GameControllerDB

200sc commented

@Noofbiz Thank you for the link, it should be very helpful! We'll target this for the next release (3.0), it will probably involve buying a bunch of controllers to manually test with.