Skip to content

Reversing the Mouse Roller Action for Zooming #1940

Answered by keince
nebsar asked this question in Support Q&A
Discussion options

You must be logged in to vote

Yes.

EarthManipulator* em = new EarthManipulator();
em->getSettings()->bindScroll(EarthManipulator::ACTION_ZOOM_IN, osgGA::GUIEventAdapter::SCROLL_UP);
em->getSettings()->bindScroll(EarthManipulator::ACTION_ZOOM_OUT, osgGA::GUIEventAdapter::SCROLL_DOWN);

-S

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@nebsar
Comment options

Answer selected by gwaldron
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants