Show
Ignore:
Timestamp:
07/03/09 21:16:53 (5 years ago)
Author:
robert
Message:

Added Dragger::s/getActivationModKeyMask(..) and Dragger::s/getActivationKeyEvent(...) methods to make it possible to have draggers that only respond when you press a specified modified key or standard key.

Changed the optional dragger in osgvolume to require the shift key to be pressed for the dragger to become active.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/examples/osgvolume/osgvolume.cpp

    r10448 r10454  
    14781478            dragger->setupDefaultGeometry(); 
    14791479            dragger->setHandleEvents(true); 
     1480            dragger->setActivationModKeyMask(osgGA::GUIEventAdapter::MODKEY_SHIFT); 
    14801481            dragger->addDraggerCallback(new DraggerVolumeTileCallback(tile.get(), tile->getLocator())); 
    14811482            dragger->setMatrix(osg::Matrix::translate(0.5,0.5,0.5)*tile->getLocator()->getTransform());