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

Re: [pygame] usb game controllers



On Thursday 23 June 2005 15:42, Terry Hancock set 1,000 monkies in front of 
keyboards and came up with the following:
>
> I'm referring to the Joystick object documentation on the PyGame site:
> """
> get_numhats
> Joystick.get_numhats() -> int
>       Returns the number of available directional hats on the Joystick.
> """
>
> Which of course, assumes I know what a "directional hat" is.

	I'll be quite honest, I see little sense in the concept of a directional hat 
(programmatically, not physically...they're great devices for any joystick, 
in fact my current rig has two). I suspect the "special treatment" came about 
partly as a result of the old gameport days where buttons were in short 
supply. With today's USB controllers, is there any good reason not to treat 
the POV hat as just 4 more buttons?

	-Matt Bailey