Jump to content
  • Advertisement
Sign in to follow this  
ssdko2004

Should I use something other then Direct Input?

This topic is 2896 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've recently been trying again to learn Direct X (and being a lot more successful then I was a few years back). Back when I first tried, I had never heard anyone complaining about Direct Input. But now I have seen a few people tell me to stay away from it for a better input method.

Well then could I get a explanation for why this might be? and a possible libraries I should use in place of Direct Input?

Thanks

Share this post


Link to post
Share on other sites
Advertisement
Quote:
Original post by ssdko2004
Ok those are some very good reasons. I just need to know what to use instead.
Start here. Each type of input listed (keyboard, mouse, raw) has its own page. Each of those pages list an about page, using page, and reference page. The using page has example code.

As an aside, one trick I've seen with a mouse is to set the mouse curser position to the center of the screen at program start. When a mouse move message is received calculate the distance the mouse moved away from the center of the screen. Then reset the mouse curser position back to the center of the screen and wait for the next mouse move message. You probably need to accumlate total mouse movement made since the last update though.

You'll need SetCursorPos to do this. Hope this helps.

Share this post


Link to post
Share on other sites
Quote:
Original post by nobodynews
As an aside, one trick I've seen with a mouse is to set the mouse curser position to the center of the screen at program start. When a mouse move message is received calculate the distance the mouse moved away from the center of the screen. Then reset the mouse curser position back to the center of the screen and wait for the next mouse move message. You probably need to accumlate total mouse movement made since the last update though.


That or RAW input.

http://msdn.microsoft.com/en-us/library/ms645536%28v=VS.85%29.aspx

Haven't used it myself yet but seems to be pretty straight forward.

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!