Developer info
Programming notes
This is the first known application that uses the joystick in Python.
Well, that’s not true, I might have been blowing a bit of smoke up your chimney. What’s true is this:
- the joystick code is easily excisable
- the code reads joystick events
- the code collapses multiple identical events into one (for broken gamepads like mine)
- the code considers a threshold
- the code for joystick processing is completely multithreaded, and will deliver events to any function or method of your choosing. Keep in mind the method of your choosing will be executed in thread context, so if you’re using GTK+, you better use
gobject.idle_addto execute more stuff in your app context! See theon_joystick_eventandon_joystick_event_synchronizedcallbacks in theJoystickControlclass for an example.
To-do list
The downloadable packages contain the TODO file. Feel free to pick one of the items, code it, and submit your improvements back to me.