Jump to content
  • Advertisement

Archived

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

sundaythedog

Mouse events

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

How do I detect when a mouse is moving on its X or Y axis? What are the (basic) different events for mouse movement and mouse clickage? (I''m not at home right now, so I don''t have access to my books and whatnot). Thanks alot! The Light shine on you

Share this post


Link to post
Share on other sites
Advertisement
What platform, language, and API are you using? Mouse input is rather platform-specific.
On Windows, you can look for WM_MOUSEMOVE messages in your window procedure or use GetCursorPos(). On Linux/XFree86, you can use XQueryPointer() or some other such function.

Share this post


Link to post
Share on other sites
Sorry for the nondescriptive original question. I''m using Windows(XP) with VC++. I''ll try out WM_MOUSEMOVE on the local machine and see if it fits what I want to do. Thanks for the reply!

The Light shine on you

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!