Mouse wheel object? Making zoom using math...
Hi there,
I'm trying to make a "zoom" using the scale function. I want it to zoom in when the mouse wheel is rolled up and zoom out when the mouse wheel is rolled down. Is this possible?
I'm also having problems with the zoom... but thats a different story <img src="/center/images/graemlins/wink.gif" alt="" />
Thanks,
-Alex
Re: Mouse wheel object? Making zoom using math...
There isn't a specific object for MMF2 which allows you to do this (there was for MMF 1.5), but you can detect mouse wheel scrolling with the WinMessPro object:
Start of frame
- Start Intercepting Messages
On Message of Type 522
- Set counter (or whatever) to wParam( "WinMessPro" ) / Abs( wParam( "WinMessPro" ) )
That expression will return either 1 or -1, 1 for when the mouse wheel is scrolled up, and -1 for when it's scrolled down.
Re: Mouse wheel object? Making zoom using math...
Thanks that worked ok <img src="/center/images/graemlins/smile.gif" alt="" />
Thanks again,
-Alex