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

Re: [pygame] Making UPS smart with Pygame and Joystick input socket



On Wed, Apr 13, 2011 at 10:18 AM, James Paige <Bob@xxxxxxxxxxxxxxxxxxx> wrote:
> I was assuming that you were talking about a USB joystick or gamepad.
> Are you talking about the old midi-port style joysticks? the ones where
> the port is usually on the sound card?
>
> I have no idea if pygame supports those at all... I am not sure if they
> even show up as joystick devices in the linux /dev tree. I suspect that
> they probably do not (not unless you are using a really ancient kernel)

I should correct myself here. I just checked, and yes, the current
stable linux kernel does still have support for these, but only if
compiled with CONFIG_GAMEPORT enabled. Whether that is enabled by
default would probably depend on your distribution.

I am going to guess that if the kernel creates a /dev/input/js# device
for it then pygame will have no trouble reading from it.

---
James Paige