Jump to content

  • Log In with Google      Sign In   
  • Create Account


Member Since 21 Nov 2005
Offline Last Active Jan 29 2007 08:41 PM

#3410884 How to add a gamepad to my game (c++, opengl)?

Posted by on 26 December 2005 - 10:54 AM

Every time someone says anything about using SDL, just ignore them.

Anyway, input has nothing whatsoever to do with the graphics library or the programming language (necessarily). What you want to do is NOT reprogram everything you have so far into SDL, or something. Just figure out how you can do input on the operating system/platform you're working with. So for instance, in windows, you can access input with DirectInput, or if I'm not mistaken (though its probably more difficult) through window messages just like how you would use mouse/keyboard. Comprendez? But just because you can do input in SDL doesn't mean you should port your entire thing into SDL just to take advantage of that one smelly thing.