Jump to content
  • Advertisement

Archived

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

Kryptus

How do I get the mouse to display screen co-ords?

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

When i set up my mouse and renderthe X and Y positions, it only displays up to 2 or something then goes back to 0. how do i set it to show the pixals on the screen? EG. X: 496 Y: 32

Share this post


Link to post
Share on other sites
Advertisement
Use the GetCursorPos(POINT pt) function. Just create a POINT object and call it in that function. Then your mouse coords will be (in my example) pt.x and pt.y

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

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

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!