Bits and pieces from a ROV project.

Python Joystick GTK

This code is work in progress!


Reads joystick data from the device and emits gobject signals.
Alternatively connect to a running joystick server instance.

stream the joystick data to a socket

Custom PyGTK widget. See for usage.

Sample GUI which shows the axis_widget in action.
When started without parameters it uses /dev/input/js0 as the joystick device.
The joystick device to be used can be supplied:

python '/dev/input/js1'
python 'localhost:9119' # needs a running instance. /

Draw 10x10 axis_widgets with random movement from