Can you use a joystick to control movements of OpenGL objects, like for a game?

Started by
0 comments, last by ju2wheels 22 years, 6 months ago
I am not really good at using openGL but I like the graphics it produces and I wanted to make a game, but I have no idea how to use a joystick or some kind of controller to actually move the "objects" around once I finish creating them....can anyone help with this or have some code that might help?
Advertisement
OpenGL has no way to do this as it is only a graphics API. Things to search for:
SDL
Direct Input
Win32 Joystick Functions
I''m not sure if GLUT has any input stuff or how robust it is, but it''s worth a look.

"If consquences dictate our course of action, it doesn''t matter what''s right, it''s only wrong if you get caught."
- Tool

"There is no reason good should not triumph at least as often as evil. The triumph of anything is a matter of organization. If there are such things as angels, I hope that they're organized along the lines of the mafia." -Kurt Vonnegut

This topic is closed to new replies.

Advertisement