Hi guys, I've been working on improving pyglet's support for game controllers, and am getting ready to open a new "game_controller" branch. I'd be grateful for feedback from anyone who has a joystick and is willing to do a little testing, or wants to help make this happen.
The new branch implements an SDL2-style Game Controller API that coexists alongside the joystick API. This new game controller API is a way to make game controllers "just work" on all platforms, by creating a standard internal layout that mimics the Xbox controller. Joysticks are automatically mapped to this layout, using an internal mapping database. As with SDL, there are built-in mappings for a few dozen popular controllers, plus the ability to add new mappings from a string, file, or environmental variable. Linux and Windows is working, but I don't have access to a Mac. If anyone has a Mac and a joystick and wants to help, please let me know. Some additional information about this SDL2-style API: SDL Wiki page: http://wiki.libsdl.org/CategoryGameController GameController mapping database: https://github.com/gabomdq/SDL_GameControllerDB Love2D implementation: https://love2d.org/wiki/Joystick:isGamepad -- You received this message because you are subscribed to the Google Groups "pyglet-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/pyglet-users. For more options, visit https://groups.google.com/d/optout.
