glut and gamepads under linux!

Started by
1 comment, last by gunslinger77 18 years, 7 months ago
Hi all gamedev-ers! I am writing some OpenGl code, using glut to "talk" with the X11 stuff. Now i wanted to add support for an USB gamepad, but... i dunno where to start: I correctly installed the gamepad (i know cause i see output cat-ing the /dev/input/js0 file). But other than that i can't see how to get the joy callback running in the app... thanks for the help!! :)
Advertisement
I don't know if glut support gamepads. You can have a look at SDL. Here is an article about how to use gamepads with SDL: http://lazyfooproductions.com/SDL_tutorials/lesson22/index.php.
thanks for the advice,
but unfortunately i am not working with
native OpenGL, but with an engine built
over it. So I am afraid
that I don't have much time to
switch to SDL.
I think i'll use that as a last resort...

This topic is closed to new replies.

Advertisement