Jump to content
  • Advertisement
Sign in to follow this  
nickwinters

Issues with DirectInput's Mouse

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

My problem is that if I use the mouse in axis aligned coords, the numbers it gives me are frickin huge, and are more or less useless. So I tell it to not use axis aligned. Now I get the change value, which is fine. Except now, I need to keep track of the mouse position myself. This is also fine, except that I don't know where the mouse started. The other option is exclusive mode, where I render the mouse myself. I can do this, but every time I set it to exclusive mode, I get an exception when I try to Set the axis alignment to true or false. How do I get exclusive mode to work? Is there a better way to deal with the mouse? I'm using managed code, but I'm told that regular DX works the same way. Thanks. -Nick

Share this post


Link to post
Share on other sites
Advertisement
Guest Anonymous Poster
I don't know if it's a better way but I ended up using the cursor for mouse positions and DirectInput only for delta values.


System.Drawing.Point position = renderform.PointToClient(System.Windows.Forms.Cursor.Position);

Share this post


Link to post
Share on other sites
I'm in the same position... using Cursor instead of DirectInput's mouse values.

So is DI totally useless for mousing, then? What am I missing?

Share this post


Link to post
Share on other sites
32 bits has some nice DX tutorials. They have a tutorial on DirectInput that might help you( the article covers the Mouse input specifically).

http://www.32bits.co.uk/

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!