Slavi
Posts: 1
Joined: Sat Oct 20, 2012 9:08 pm

Xbox Controller xboxdrv

Sat Oct 20, 2012 9:15 pm

Hi Guys,

I have a big problem.

I want to controll Servos with my xbox controlller, so I installed xboxdrv.
Now my problem is, I want to read out the Data from xboxdrv and include it in my Python program.

For example:

The Worth of the X-axis 1 should be saved in a Integer but I have absolutly no idea, how to get the controller worths into the program.

pls help me :)

Morphit
Posts: 1
Joined: Mon Jul 09, 2012 12:32 pm

Re: Xbox Controller xboxdrv

Wed Nov 14, 2012 2:39 pm

Hi,
I was looking for how to do this myself. I was thinking of using pygame anyway, but with a quick look it looks like the only sensible way of doing it. I had to turn off the video and audio drivers but I managed to get some nice values out after modifying someone's joystick code. Here's the gist:
https://gist.github.com/4071514

Hopefully that'll help if you're still looking.

Return to “Python”