Platform-Independent Input

Main Question or Discussion Point

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?
 

Answers and Replies

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.
 
590
0
LarrrSDonald said:
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.
 
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).
 

Related Threads for: Platform-Independent Input

  • Last Post
Replies
10
Views
1K
  • Last Post
Replies
24
Views
4K
  • Last Post
Replies
7
Views
683
Replies
1
Views
2K
  • Last Post
Replies
8
Views
2K
  • Last Post
Replies
4
Views
2K
Replies
2
Views
2K
Replies
16
Views
3K
Top