2.10 EarthManipulator::OPTION_CONTINUOUS zooming doesn't work

classic Classic list List threaded Threaded
4 messages Options
krzysief krzysief
Reply | Threaded
Open this post in threaded view
|

2.10 EarthManipulator::OPTION_CONTINUOUS zooming doesn't work

Hi, i moved to osgEarth 2.10.1 from 2.9 When i try to zoom it lasts only for a second despite the fact that i am holding the key. Before (on 2.9) it zoomed continuously. Here is my code:

EarthManipulator::ActionOptions option;
option.add(EarthManipulator::OPTION_CONTINUOUS, true);

auto* settings = new EarthManipulator::Settings;
settings->bindKey(EarthManipulator::ACTION_ZOOM_OUT, GUIEventAdapter::KEY_Minus, 0L, option);
settings->bindKey(EarthManipulator::ACTION_ZOOM_IN,  GUIEventAdapter::KEY_Plus, 0L, option);
gwaldron gwaldron
Reply | Threaded
Open this post in threaded view
|

Re: 2.10 EarthManipulator::OPTION_CONTINUOUS zooming doesn't work

I tried this on 2.10 branch with different results: the KEY_Minus operation works, but I had to add a SHIFT modifier for the KEY_Plus to work. (That is a separate bug.)

Key-based actions do not use the CONTINUOUS option. It is only used for mouse dragging actions. The continuous behavior with a key-based action is just the system sending key events as you hold down the key. Using the CONTINUOUS option for keys might make sense to implement in the future.

Are you using Windows? Or some other event-handling layer (like Qt)?
Glenn Waldron / Pelican Mapping
krzysief krzysief
Reply | Threaded
Open this post in threaded view
|

Re: 2.10 EarthManipulator::OPTION_CONTINUOUS zooming doesn't work

Glenn,
I am using Ubuntu 18.04, everything is happening inside Qt QML window.

If the key to the case are the keyboard keys why did it work on the previous version?

Cheers, Kris.
gwaldron gwaldron
Reply | Threaded
Open this post in threaded view
|

Re: 2.10 EarthManipulator::OPTION_CONTINUOUS zooming doesn't work

Kris,
I don't know, since it works for me in both versions. Different OSG version? Different Qt version maybe? Changes to osgQt? Just guessing.
Glenn Waldron / Pelican Mapping