Is There a Platform-Independent Input Library for Real-Time Applications?

  • Thread starter Thread starter Dissident Dan
  • Start date Start date
  • Tags Tags
    Input
AI Thread Summary
DirectX is recognized as the primary method for gathering user input in Windows games and real-time applications, but there is a desire for platform-independent alternatives. SDL (Simple DirectMedia Layer) is highlighted as a viable option that can effectively replace DirectX for input handling, despite OpenGL being a solid choice for graphics. While OpenGL serves well for graphics, it does not address input needs. The discussion emphasizes that SDL can manage various aspects of game development, including input, sound, and potentially timer functionality, making it a comprehensive solution for developers looking to avoid OS-specific APIs.
Dissident Dan
Messages
236
Reaction score
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?
 
Computer science news on Phys.org
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.
 
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).
 
This week, I saw a documentary done by the French called Les sacrifiés de l'IA, which was presented by a Canadian show Enquête. If you understand French I recommend it. Very eye-opening. I found a similar documentary in English called The Human Cost of AI: Data workers in the Global South. There is also an interview with Milagros Miceli (appearing in both documentaries) on Youtube: I also found a powerpoint presentation by the economist Uma Rani (appearing in the French documentary), AI...
Back
Top