PDA

View Full Version : Joystick Programming



02-09-2001, 06:07 PM
Hi, I just finished programming a good part of my game engine, and I was wondering if anyone knew of a good way to add joystick support? For right now I'm using GLUT, and I'm not familiar with any GLUT_JOYSTICK anything.....

-Thanks in advance!

02-13-2001, 10:18 PM
Well, it all depends on what platform and language you are using. If Win32 on VC++ or something, you could try to use DirectX or standard Win32 functions.

Basically, it's not an OpenGL thing, open GL is graphics, not IO.

I personally use the Cygwin compilers/environment and the PLIB libraries. Nice and portable, and GPL too. The js routines work great and were fairly simple to get going, just have to follow (or should I say steal?) their example source...
http://plib.sourceforge.net/


-James