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).
 
Thread 'Urgent: Physically repair - or bypass - power button on Asus laptop'
Asus Vivobook S14 flip. The power button is wrecked. Unable to turn it on AT ALL. We can get into how and why it got wrecked later, but suffice to say a kitchen knife was involved: These buttons do want to NOT come off, not like other lappies, where they can snap in and out. And they sure don't go back on. So, in the absence of a longer-term solution that might involve a replacement, is there any way I can activate the power button, like with a paperclip or wire or something? It looks...
In my discussions elsewhere, I've noticed a lot of disagreement regarding AI. A question that comes up is, "Is AI hype?" Unfortunately, when this question is asked, the one asking, as far as I can tell, may mean one of three things which can lead to lots of confusion. I'll list them out now for clarity. 1. Can AI do everything a human can do and how close are we to that? 2. Are corporations and governments using the promise of AI to gain more power for themselves? 3. Are AI and transhumans...
Back
Top