[Gambas-user] Gambas class to read a joystick
Rob
sourceforge-raindog2 at ...94...
Mon Mar 3 04:15:58 CET 2008
On Sunday 02 March 2008 17:58, Laurent Carlier wrote:
> An external component (outside of sdl) should be a good idea and
> not be too hard to develop.
>
> Some hints (quick search through gg):
> http://www.koders.com/c/fid19CB9E605749A439549F8CC9B8433DCAC6AC5A55
>.aspx
> http://www.mjmwired.net/kernel/Documentation/input/joystick.txt
My class only supports HID-standard joysticks, which seems to be all
they sell nowadays. (The one I used is USB, but I think Bluetooth
gamepads are HID too.) The links above are for the old
style "gameport" joysticks, and I don't have any way to test those
since I don't own any hardware with a gameport anymore. I think
those disappeared before parallel ports did.
Anyway, my class seems to support most of the features joysticks have
(up to 256 buttons and axes, but no rumble because I don't have a
rumbling controller.) If I do write a proper component I think it'll
be a C version of that class, though hopefully I will no longer have
to spawn /bin/cat.
Rob
More information about the User
mailing list