02520fb63e
Use the SDL GameController API with SDL events instead of polling manually. Run SDL_PollEvent() in the panel OnIdle(). The API to the GUI remains the same, the sending of wxSDLJoyEvent events. Except there are no more hat events, we just use the GameController buttons. Also the GUI now has to make arrangements for wxSDLJoy::Poll() to be called periodically, for the config dialog this is done with a timer. All Xbox 360 controller buttons and axes are now in the defaults, and the SDL GameController API will map them to the appropriate keys on other controllers. As a consequence of using SDL events, controller attach/detach from the system is now also handled correctly. It is no longer necessary to have the controller attached and turned on when the program launches. Signed-off-by: Rafael Kitover <rkitover@gmail.com> |
||
---|---|---|
.. | ||
wxvbam | ||
CMakeLists.txt | ||
update_pot.sh |