Show
Ignore:
Timestamp:
07/13/07 13:17:41 (7 years ago)
Author:
robert
Message:

Introduced new GUIEventAdatper singleton for sharing the current state between
multiple GraphicsWindows?, this singleton is accessable via GUIEventEvent::getAccumulatedEventState().

Added use of this new singleton in GraphicsWindow?* implementations.

Added WindowSizeHandler? to osgkeyboard to help with debugging of event state
between windows.

Files:
1 modified

Legend:

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

    r7070 r7112  
    372372 
    373373#if 1 
     374 
     375//            osg::notify(osg::NOTICE)<<"Mouse "<<ea.getButtonMask()<<std::endl; 
     376 
    374377            #define PRINT(mask) osg::notify(osg::NOTICE)<<#mask<<" ="<<(ea.getModKeyMask() & mask)<<std::endl; 
    375378            switch(ea.getEventType()) 
     
    424427 
    425428    viewer.addEventHandler(new osgViewer::StatsHandler); 
     429    viewer.addEventHandler(new osgViewer::WindowSizeHandler()); 
    426430    viewer.addEventHandler(new KeyboardEventHandler(keyboardModel.get())); 
    427431    viewer.setSceneData( keyboardModel->getScene() );