My first guess was to use pygame to (hopefully) read from /dev/uinput (which I'm pretty sure is where the driver sends the data): from pygame import joystick Apparently it's a linux feature that allows userspace drivers to provide system events.Why the WG driver requires root access given that it's supposedly a userspace driver is beyond me, but that's not my question.Īnyway, the current state of me trying to get it to work is that I've got the driver working, and I've verified that it responds to button presses on the controller, but I don't know how to pull any of that data out so I can use it. I started with the ps3joy driver from Willow Garage () which supposedly publishes all the important bits of the PS3 controller to something I had never heard of called "uinput". ![]() ![]() I'm trying to read from a PS3 controller in python on Ubuntu and I'm not having much luck.
0 Comments
Leave a Reply. |