Prerisoft » Projects » Joygraph

Joygraph in Action

Short version: A simple joystick input graphing utility I made on a Tuesday evening. Long version: A Python script that uses SDL's joystick interface libraries through Pygame to provide a readout of a joystick's inputs.

The setup is simple - run it, with optional arguments indicating which joystick number you want and the width of the window - and it creates a set of bars indicating the total axes of the joystick, then the hat switches, and then the buttons. It'll constantly poll these and print the results out as it scrolls. Joystick ball support was not bothered with because :effort:.

This script requires Pygame (obviously) as well as the built-in argparse library.

Questions? Comments? Bug reports? Feel free to get in contact with me and let me know!

Downloads