Python Forum

Full Version: Interfacing with a USB game controller
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
When I plug a USB keyboard into my computer, I can interface with it using standard python print and read statements. The keyboard is of course a USB HID device.

If I plug in a USB HID game controller into my computer, how would I access the data to/from the controller. Is there a python library that helps in this effort? I would like to read the joystick positions for example.
Hello,

I think you'll like this tutorial: http://programarcadegames.com/index.php?...d_graphics
Thanks, looks like this is what I was looking for.