Jump to content

Mouse scrolling not working correctly


Recommended Posts

Hello,

 

the value returned by Window::GetMousePosition() is only changing when scrolling downwards:

 

Leadwerks::Vec3 mspos = Leadwerks::Window::GetCurrent()->GetMousePosition();
printf("%d\n", mspos.z);

 

It does never change when scrolling up.

 

Thank you.

 

PS: I am using Leadwerks 3.0.

Link to comment
Share on other sites

  • 2 weeks later...

Fixed. If anyone is interested. this is the proper way to get the mouse wheel delta on Windows:

           	 case WM_MOUSEWHEEL:
                   window->mousez += GET_WHEEL_DELTA_WPARAM(wparam)/120;
                   break;

  • Upvote 1

My job is to make tools you love, with the features you want, and performance you can't live without.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

×
×
  • Create New...