|
| |||||||||||||||||||||||||||||||||||
| chrisname (4883) | |||||
|
I'm trying to use WM_MOUSEWHEEL for something very simple -- I simply want to check if the wheel has moved up or down; not how far. I've looked on MSDN, and googled it; but to no avail - I still can't figure out how to do it. Could someone please demonstrate how you would evaluate whether the mouse had moved up or down? I'm trying to write a function to increase or decrease hue on a colour via the mouse wheel; this is the code I have so far:
"r", "g", and "b" are integers being used for RGB() values thus:
"red", "green" and "blue" are booleans to decide what to in-/decrease. All I want to know how to do is judge whether the mousewheel has been moved up or down. Thanks. | |||||
|
|
|||||
| Grey Wolf (2822) | |
|
Use the GET_WHEEL_DELTA_WPARAM Macro on the wParam, a positive indicate the wheel is rotated away from the user (up) and a negative indicates a rotation towards the user (down) GET_WHEEL_DELTA_WPARAM http://msdn.microsoft.com/en-us/library/ms646254(VS.85).aspx | |
|
|
|
| chrisname (4883) | |
| Thanks =] | |
|
|
|