More boring zooming questions...

Blitz3D Forums/Blitz3D Programming/More boring zooming questions...

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Thanks Ross C!

It works good enough for me. I changed the zoom speed to be faster and I hooked it up to my middle mouse wheel so I could use the wheel for zooming in and out.
Here is the code that I used for detecting the mousewheel. It may not be as efficient as it could be and it may not be the right way to do at all. If you know of a better way, I would love to know it...


CurrentMouseZ# = MouseZ()
IF CurrentMouseZ# < SaveMouseZ# then
     SaveMouseZ# = CurrentMouseZ
     zoom_in()
END IF

IF CurrentMouseZ# > SaveMouseZ# then
     SaveMouseZ# = CurrentMouseZ
     zoom_in()
END IF



I really want it to zoom in to my mouse position. How do I make the zoom_pivot always follow my mouse pointer rather than having to use the arrow keys to move the zoom_pivot? Does that complicate things too much?

Thanks,

David