Archived

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

BriarLoDeran

Beating mouse position out of Windows

Recommended Posts

Now maybe I''m an idiot, but for the life of me I cannot figure out how to get the absolute mouse coordinates from Windows. All I want is a nice little function that I sent a structure to fill that gives me the current absolute mouse x and y. That''s all I ask. No call back functions or windows messaging madness...just a nice simple function. Can anyone help? Oh right, and this has to work for win9x, and NT4.0/2000. Thanks to all the brave souls who help me... -> Briar LoDeran <-

Share this post


Link to post
Share on other sites
Thanks! I actually found it a little while after I posted. This horrible program I have to make changes to has some other internal errors that caused me to not trust the mouse positions it had. Thank you anyhow!

-> Briar LoDeran <-

Share this post


Link to post
Share on other sites
look at my replies at:

GameDev Mouse Problems

If you are using directinput, the mickey system I have laid out works great if you are displaying your own mouse. If you are using the hardware cursor, then you will have to either change the mickey ratio to match the hardware cursor or set the hardware cursor position to match YOUR coordinates.

Share this post


Link to post
Share on other sites