User Input
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>
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.
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 :)
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 :)
Here seems a good resource. Not sure though, jsut did a quick search for that.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement