Archived

This topic is now archived and is closed to further replies.

Samith

Input libraries

Recommended Posts

Samith    2460
Are there any good input libraries besides the DirectInput one? I don''t want a flamewar here with a bunch of people yelling about what Input library is the best, I just want to know some decent alternatives to the DirectX one.

Share this post


Link to post
Share on other sites
biovenger    122
SDL provides a simple and good interface for both graphics, sound and input. You can choose from both joystick, mouse and keyboard or use them all at the same time.

Although remember, if you are using SDL only for input, then you''re actually using a whole graphics library for input.

Another thing to note, SDL is portable across many systems, so the input will probably work on other machines than windows, whereas the DirectX code you are obviously coding in won''t.

(If you are using OpenGL and want input with DirectInput then I want to reccomend changing to SDL, since you can use OGL from SDL for rendering. Go to www.libsdl.org)

Share this post


Link to post
Share on other sites
Samith    2460
I''m really not going to be doing anything too complicated, all I need is a keyboard and mouse input system. And I didn''t want to start coding it in DirectX because I am doing the graphics with OpenGL, and it just doesn''t feel right using DX and OGL in the same program

Thanks for the answer, I''ll go check out SDL.

Share this post


Link to post
Share on other sites