Hello All
I’m trying to hook the mouse scroll wheel using SetWindowsHookEx with WH_MOUSE_LL. The callback function I am using operates correctly, and identifies when the mouse wheel is scrolled. However I am unsure of how to identify which direction the mouse has been scrolled. My code so far:
LRESULT CALLBACK mouseProcedure(int nCode, WPARAM wParam, LPARAM lParam)
{
if (nCode == HC_ACTION)
{
switch (wParam)
{
case WM_MOUSEWHEEL:
// Identify mouse wheel direction here..
break;
default:
break;
}
}
return false;
}
Any thoughts, tips or recommendations would be greatly appreciated.
Cheers
Cam