Jump to content
  • Advertisement
Sign in to follow this  
blanky

Alternate Input Library

This topic is 4848 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hello guys, long time no see. Anyways, I'm starting to plan out a game project and I would like to know what you guys use as an Input Library, I'm using OpenGL and OpenAL, and I was looking forward to an opensource Input Library that's just as portable, but if not then my primary target is windows. I already know DirectInput but Microsoft Interfaces are very messy, and was wondering if there was an alternative thats just as fast/faster. I already searched google with no success, usually unknown personal projects. Thanks for any help, sorry if I posted in the wrong place.

Share this post


Link to post
Share on other sites
Advertisement
I heard or something called SDL i think it
suports input as well. I don't know the site
but i think a litle google will help you.

Tjaalie,

Share this post


Link to post
Share on other sites
There is nothing wrong with using the basic win32 keyboard functions and Windows Procedure message queue.

I check all input in windows using GetCursorPos (which using current and previous positions gives you an amount of movement on the cursor), GetKeyboardState (for all keyboard input and mouse buttons) and use the WM_MOUSEWHEEL message in the winproc for dealing with mouse wheel movement (obviously!)

I find this handles input perfectly, without having to resort to another library.

You can then do something similar on any other platform you might want to suuport.

Hope that helps any
Spree

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!