[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [pygame] usb game controllers
> Joystick.get_numhats() -> int
> Returns the number of available directional hats on the Joystick.
I'd just like to add that on 'classic' gameport joysticks the hats (i think
they've been called 'Coolie Hats", too) were special input. i don't know fer
sure if different sticks used different configurations and needed to be
implemented individually (especially for the old dos-games), but as an
example the coolie - hat on the more or less famous "CH Flightstick Pro" used
- analog x - axis
- analog y - axis
- four fire buttons (A,B,C and D)
- analog throttle (3rd axis)
- Point-Of-View-Hat
Because of the lack of connections on the pc gameport, the POV-Hat was encoded
as fire button combinations:
Up: A & B & C & D
Down: A & B & C
Right: A & B & D
Left: A & B
"and not as another two analog" + plural('axis') +". - that's all, folks."