Advertisement

Input

Started by November 04, 2004 03:35 PM
1 comment, last by Wolfdog 20 years ago
For a little background, i am writting a cross-platform 3D engine using OpenGL just for learning purposes. I am still trying to make it as good as I possibly can. I am at the point where i need to start working on input from the mouse and keyboard. In windows i plan on using Direct Input for this because i have heard that windows messaging is not really a good choice for video game input. The problem is, in linux i cannot find a good replacement for using the X windows messaging system for this. I have looked at SDL but in the source it looks like SDL is just a wrapper around X windows. My question is are there any libraries that are like Direct Input. Or if it is possible maybe i can write code that interacts directly with the linux drivers, im not sure how to do that because ive never tried. Any advice?
Quote: Original post by Wolfdog
My question is are there any libraries that are like Direct Input. Or if it is possible maybe i can write code that interacts directly with the linux drivers, im not sure how to do that because ive never tried. Any advice?
No.

It's better to use DirectInput than win32 on windows, but it is not better to go any lower level than the X input stuff on linux.

SDL is made for this situation. It uses DirectInput on windows and X input on linux hidden behind a single API.
Advertisement
Ok, i guess i will do that then, thanks.

This topic is closed to new replies.

Advertisement