Jump to content
  • Advertisement


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


Mouse Class

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

Does Anyone have any Idea how you would scan the position of the mouse from within a class? Example: Class Mouse { Public: Scan(); // this is what I want. Private: int mousex, mousey; // Mouse coords. } Mouse::Scan() { // In here the mouse coords would be stored in mousex/mousey. } Did that make sense? (P.S. I Am STRONGLY against using GLUT, even though it does have mouse functions) ----------------------------- Blue*Omega (Insert Witty Quote Here)

Share this post

Link to post
Share on other sites
You can do this with DirectInput if you are
going to support MS inventions.

You can mail me and I will send you a short
code snippet. I would post it here, but this
could be a little bit to large.

Best regards

Marc ''nEo'' Ueberall

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!