Python Forum
Interfacing with a USB game controller
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Interfacing with a USB game controller
#1
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.
Reply
#2
Hello,

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


Possibly Related Threads…
Thread Author Replies Views Last Post
  PCI-interfacing ADDI-DATA APCI-1516 Lux_Aitherros 2 637 Jan-13-2025, 11:43 AM
Last Post: Lux_Aitherros
  Joystick-controller in threadings MacTommy 4 1,167 Dec-06-2024, 07:22 AM
Last Post: MacTommy
  Media Pipe Python Interfacing with MATLAB cmcreecc 1 900 May-30-2024, 07:23 AM
Last Post: TrentErnser
  Interfacing from Python to GUI HMartins 7 2,943 Apr-23-2023, 06:06 PM
Last Post: HMartins
  Python and DMX (aka, light controller) ScottAF 4 5,104 Apr-06-2023, 07:09 PM
Last Post: ScottAF
  How can flask find the controller? 3lnyn0 3 2,289 Jul-08-2022, 10:05 AM
Last Post: Larz60+
  Controller Buzzer as Distance Decreases barkster 6 3,511 Nov-01-2021, 03:26 PM
Last Post: barkster
  Thoughts on interfacing with a QR code reader that outputs keystrokes? wrybread 1 2,060 Oct-08-2021, 03:44 PM
Last Post: bowlofred
  Auto re-pair / re-sync Controller via Script? User3000 2 3,041 Nov-30-2020, 11:42 AM
Last Post: User3000
  Tuning PID controller Sancho_Pansa 4 5,994 Nov-09-2020, 07:51 AM
Last Post: Sancho_Pansa

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020