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 5590 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.

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!