PDA

View Full Version : P.O.V. button on Joystick?



TolTol
04-02-2003, 09:55 AM
Hi all,

I'm building a Flight Simulator for a college project and I'm using a Microsoft Sidewinder Joystick to control the aeroplane.

I'm using the glut function "glutJoystickFunc(...)" to process the joystick input.

My question is this: Is there any way to register the user pressing the Point Of View button on the top of the joystick. OpenGL doesn't seem to be registering the movement of this button/switch. I want this button to allow the user to look in different directions.

Any ideas?

Thanks in advance http://www.opengl.org/discussion_boards/ubb/smile.gif

TolTol
04-09-2003, 04:28 AM
Answer me god damn it!!! http://www.opengl.org/discussion_boards/ubb/smile.gif

Deiussum
04-09-2003, 04:34 AM
You're right. OpenGL won't register the button. That's because OpenGL is a graphics API!

Now, it appears that you are using glut for your windowing, so your problem is actually that glut isn't detecting the joystick. I haven't done much with glut and joysticks so I can't help you too much. But you might want to look at DirectInput or something similar for your joystick handling instead of relying on glut for it.

nexusone
04-09-2003, 04:45 AM
Here is an answer:
Really don't know if there is support for it, there maybe through extension support in glut with deviceget?

You can have four button's, X,Y,Z axis (z sometimes is used for trottle).


Originally posted by TolTol:
Answer me god damn it!!! http://www.opengl.org/discussion_boards/ubb/smile.gif



[This message has been edited by nexusone (edited 04-09-2003).]