Advertisement

Mouse events

Started by December 03, 2002 08:34 PM
1 comment, last by sundaythedog 21 years, 11 months ago
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
The Light shine on you
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.
ReactOS - an Open-source operating system compatible with Windows NT apps and drivers
Advertisement
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
The Light shine on you

This topic is closed to new replies.

Advertisement