Is there any call for support for multiple joysticks in "freeglut"?

John F. Fay
-----Original Message-----
From: [] On Behalf Of Nigel Stewart

Sent: Sunday, December 19, 2004 7:52 PM
To: OpenGLUT Devel
Subject: [OpenGLUT-devel] Multiple Joysticks with OpenGLUT

I've been doing some minor refinement to the
OpenGLUT joystick handling - and came across
something interesting.

When multiple joysticks are detected, OpenGLUT
will report all of the buttons and axes for
all of the joysticks.  The application has no
way of knowing which joystick the information
is for, apart from possibly assuming that
they arrive in 010101.. sequence.

I've modified OpenGLUT to only invoke the
callback for the *first* detected joystick
(/dev/js0 on Linux), rather than all joysticks.

I hope this doesn't affect anyone trying to
support multiple joysticks.


SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
Openglut-devel mailing list