[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] usb game controllers



On Wed, Jun 22, 2005 at 04:17:51PM -0500, Terry Hancock wrote:
> Is there any capability to support USB game controllers on 
> Linux with pygame (or any other game development system
> that you know of?).   I keep seeing these things in the 
> computer stores and wondering if they could be used on
> my Linux games. I know my kids would find it interesting.
> 
> It's enough if there is a means to do this in a new game --- 
> I'd be willing to try it experimentally even if no existing 
> games can use it. But I don't have any idea how to go about
> interfacing it.  It's not really a pointing device. I 
> suppose it could be compared to a keyboard device? But
> really it's neither.
> 
> If I wanted to write a Linux game to use a controller, what
> would I have to do?
> 
> --
> Terry Hancock ( hancock at anansispaceworks.com )
> Anansi Spaceworks  http://www.anansispaceworks.com
> 

Pygame supports joysticks nicely. See 
http://pygame.org/docs/ref/Joystick.html

Support for USB joysticks on linux in general is quite good, although 
some special features like vibration or force-feedback won't be 
available.

---
Bob the Hamster