Jump to content
  • Advertisement
Sign in to follow this  
starfleetrp

Mouse Problems in GUI

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

Hi, I am currently working on creating a GUI for my game but I am having some trouble getting the mouse chords to be correct. It works perfect in full screen but the title bar seems to mess up the chords and makes everything seem to be offset by the height of the title bar. I am wondering how you have been able to fix this problem?

Share this post


Link to post
Share on other sites
Advertisement
you can use GetClientRect() or something like that (i might have the name slightly of) to get the size of the actauls client area (i.e. without menu and title bars and stuff) the compare this to the real size of the window to get the amount you need to adjust the mouse position by.

Hopw that helps

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!