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 joy_client_ui.py 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 joy_client_ui.py '/dev/input/js1' python joy_client_ui.py 'localhost:9119' # needs a running joystick_server.py instance.
Draw 10x10 axis_widgets with random movement from motion_simulator.py