Platform-Independent Input

  • #1
Dissident Dan
237
2
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

  • #3
LarrrSDonald
71
0
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.
 
  • #4
master_coda
591
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.
 
  • #5
Dissident Dan
237
2
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).
 

Suggested for: Platform-Independent Input

Replies
20
Views
576
Replies
3
Views
726
Replies
7
Views
1K
  • Last Post
Replies
7
Views
1K
Replies
11
Views
2K
Replies
6
Views
765
Replies
5
Views
559
  • Last Post
Replies
10
Views
1K
Replies
4
Views
1K
Replies
12
Views
1K
Top