Advertisement

User Input

Started by June 17, 2006 03:58 AM
4 comments, last by pjcast 18 years, 4 months ago
How too get user input in Linux, beside using toolkits such as gtk++ or SDL.
For what kind of application? Use the Qt/GTK toolkits for GIU applications. Use the stdin for commandline applications. Use SDL for SDL applications.

<hr />
Sander Marechal<small>[Lone Wolves][Hearts for GNOME][E-mail][Forum FAQ]</small>

Advertisement
What are about for a game? The reason I don't what to use SDL is because I already have a custom framework for windowing using Xlib. Should I use Xlib events to process inputs for games?

What's I'm looking for is something like DirectInput, sort of. This is for an engine and I need to have each component separated (graphics, input, sound, windowing, etc) which can have switched implementation.
Under x11, there is XInput (which should work - I havn't used it - various things like tablets, joys, mice, etc).

However, there are the standard x events, which you can use for mouse and keyboard. And, for joysticks, you can get values from /dev/input/js# or event# depending on your needs.

Or, you could try my INput lib, OIS - which works well X11 apps :)
Any documentation on XInput?
Here seems a good resource. Not sure though, jsut did a quick search for that.

This topic is closed to new replies.

Advertisement