Reversing the Mouse Roller Action for Zooming #1940
Answered
by
keince
nebsar
asked this question in
Support Q&A
-
Is it possible to reverse the mouse roller action for zooming in and out? If so, how can I do it? |
Beta Was this translation helpful? Give feedback.
Answered by
keince
Jan 28, 2022
Replies: 1 comment 1 reply
-
Yes. EarthManipulator* em = new EarthManipulator(); -S |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
gwaldron
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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