Hi,

Thank you for the reply. I looked at those examples but it is not quite what I 
am looking for.

I am looking for something like this, but to Pan up when the mouse is dragged 
up:

        
_manip->getSettings()->bindMouse(osgEarth::Util::EarthManipulator::ACTION_PAN_UP,
 osgGA::GUIEventAdapter::LEFT_MOUSE_BUTTON);

My current settings are:

        
_manip->getSettings()->bindKey(osgEarth::Util::EarthManipulator::ACTION_ROTATE_LEFT,
    osgGA::GUIEventAdapter::KeySymbol::KEY_Left,    
osgGA::GUIEventAdapter::MODKEY_CTRL);
        
_manip->getSettings()->bindKey(osgEarth::Util::EarthManipulator::ACTION_ROTATE_RIGHT,
   osgGA::GUIEventAdapter::KeySymbol::KEY_Right,   
osgGA::GUIEventAdapter::MODKEY_CTRL);
        
_manip->getSettings()->bindKey(osgEarth::Util::EarthManipulator::ACTION_ROTATE_UP,
              osgGA::GUIEventAdapter::KeySymbol::KEY_Up,              
osgGA::GUIEventAdapter::MODKEY_CTRL);
        
_manip->getSettings()->bindKey(osgEarth::Util::EarthManipulator::ACTION_ROTATE_DOWN,
    osgGA::GUIEventAdapter::KeySymbol::KEY_Down,    
osgGA::GUIEventAdapter::MODKEY_CTRL);
        
_manip->getSettings()->bindKey(osgEarth::Util::EarthManipulator::ACTION_ZOOM_IN,
                osgGA::GUIEventAdapter::KeySymbol::KEY_Up,              
osgGA::GUIEventAdapter::MODKEY_CTRL | osgGA::GUIEventAdapter::MODKEY_SHIFT);
        
_manip->getSettings()->bindKey(osgEarth::Util::EarthManipulator::ACTION_ZOOM_OUT,
 osgGA::GUIEventAdapter::KeySymbol::KEY_Down, 
osgGA::GUIEventAdapter::MODKEY_CTRL | osgGA::GUIEventAdapter::MODKEY_SHIFT);
        
_manip->getSettings()->bindScroll(osgEarth::Util::EarthManipulator::ACTION_ZOOM_IN,
 osgGA::GUIEventAdapter::SCROLL_UP);
        
_manip->getSettings()->bindScroll(osgEarth::Util::EarthManipulator::ACTION_ZOOM_OUT,
 osgGA::GUIEventAdapter::SCROLL_DOWN);

But I have no bindMouse settings.

At the moment the left click and drag up/down causes a zoom in/out.

I want a left click and drag up/down to pan up/down.

Many thanks for your help!

Cheers,
Adrian

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=72994#72994





_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to