1. Thomas Schüßler
  2. pystick

Overview

pystick

Bits and pieces from a ROV project.

Python Joystick GTK

This code is work in progress!

screenshot

joystick.py

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

joystick_server.py

stream the joystick data to a socket

axis_widget.py

Custom PyGTK widget. See joy_client_ui.py for usage.

joy_client_ui.py

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.

stresstest1.py / stresstest2.py

Draw 10x10 axis_widgets with random movement from motion_simulator.py