| | 111 | |
| | 112 | // we want the dragger to handle it's own events automatically |
| | 113 | dragger->setHandleEvents(true); |
| | 114 | |
| | 115 | // if we don't set an activation key or mod mask then any mouse click on |
| | 116 | // the dragger will activate it, however if do define either of ActivationModKeyMask or |
| | 117 | // and ActivationKeyEvent then you'll have to press either than mod key or the specified key to |
| | 118 | // be able to activate the dragger when you mouse click on it. Please note the follow allows |
| | 119 | // activation if either the ctrl key or the 'a' key is pressed and held down. |
| | 120 | dragger->setActivationModKeyMask(osgGA::GUIEventAdapter::MODKEY_CTRL); |
| | 121 | dragger->setActivationKeyEvent('a'); |