Advertisement Jump to content
Sign in to follow this  
Daniel Miller

DirectInput - needed for keyboard/mouse?

This topic is 4928 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

I was about to make an event system for my Input class, when I realized that Windows has that built in. If my program would benifit from event-driven input, should I bother with DirectInput? If DI is more accurate, then I will, but otherwise I don't see the need to.

Share this post


Link to post
Share on other sites
Advertisement
How does DI manage to be more responsive than Windows... is it because there isn't an event system wrapping it up? If made my own (which is what I'm planning on doing, of course), would DI still be faster?

I've had some aweful experiences with floaty mice and laggy keyboard input, so I want to get it right this time.


edit: clarity

Share this post


Link to post
Share on other sites
DirectInput puts hooks down near the driver level and gets immediate responses when input events occur. DirectInput has an event system too, apart from the Windows Messaging System. Look up buffered data.

Share this post


Link to post
Share on other sites
My understanding is DInput bypasses windows and talks directly (or at least close to directly) with the hardware. I find windows input to be very floaty at low frame rates. DInput is much better about that.

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.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!