View Full Version : Platform-Independent Input
Dissident Dan
Aug21-05, 05:38 PM
The only good way to gather user input in games and other real-time applications in Windows that I know if is to use Direct X. I really hate using OS-specific APIs and libraries. Is there any sort of platform-independent input library out there that does a decent job of giving the programmer access to input devices?
dduardo
Aug21-05, 07:48 PM
http://www.libsdl.org/index.php
LarrrSDonald
Aug21-05, 07:57 PM
OpenGL in general is pretty solid (and if you wish to go via SDL, then so be it). It's still not as universal as DirectX on windows, but it is common enough that most windows users can't resonably expect to avoid it.
master_coda
Aug21-05, 10:05 PM
OpenGL in general is pretty solid (and if you wish to go via SDL, then so be it). It's still not as universal as DirectX on windows, but it is common enough that most windows users can't resonably expect to avoid it.
Unfortunately, OpenGL can only be used to replace the graphics component of DirectX, so it doesn't help here. SDL is much better as a complete replacement for DirectX.
Dissident Dan
Sep13-05, 01:59 PM
Thanks, guys. I'm using opengl and openal for the graphivs and sound, but it looks like I can use e SDL for just about everything else (assuming that the timer has a good-enough resolution).
vBulletin® v3.8.7, Copyright ©2000-2012, vBulletin Solutions, Inc.