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 'ChatGPT Examples, Good and Bad'
I've been experimenting with ChatGPT. Some results are good, some very very bad. I think examples can help expose the properties of this AI. Maybe you can post some of your favorite examples and tell us what they reveal about the properties of this AI. (I had problems with copy/paste of text and formatting, so I'm posting my examples as screen shots. That is a promising start. :smile: But then I provided values V=1, R1=1, R2=2, R3=3 and asked for the value of I. At first, it said...
Sorry if 'Profile Badge' is not the correct term. I have an MS 365 subscription and I've noticed on my Word documents the small circle with my initials in it is sometimes different in colour document to document (it's the circle at the top right of the doc, that, when you hover over it it tells you you're signed in; if you click on it you get a bit more info). Last night I had four docs with a red circle, one with blue. When I closed the blue and opened it again it was red. Today I have 3...
Back
Top