Ive been trying to make a zoom function so that when you hit right click it zooms in a little and only then will you be able to zoom with the scroll wheel further. any ideas on how to get it working? thanks
Hey @TownsKeeper! Welcome to the forums!
I think part of the issue may be that the lower part of the code has both the zoom in AND the zoom out on Right Mouse Button Pressed. Maybe change the zoom out to be release
Thank you for the welcoming!
I have three input for the entire zoom function
those inputs being RMB, Scroll Wheel Up, and Down
RMB starts the initial zoom (12mm → 15mm), then the scroll wheel is supposed to increase/decrease the zoom(12mm → 50mm)
I want to make the code follow these rules
when RMB is pressed->zoom in slightly
if RMB pressed->activate scroll wheel zoom usage
else-> keep scroll wheel zoom deactivated
if RMB is released, reset focal length to 12mm
I am also using the CineCam if that helps
sorry for all the deleted messages, still figuring out the forums page