From b2535d55c693033f560934df8988ff61b94cb7ac Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Fri, 13 Jul 2007 11:17:41 +0000 Subject: [PATCH] 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. --- examples/osgkeyboard/osgkeyboard.cpp | 4 ++++ include/osgGA/GUIEventAdapter | 7 +++++++ src/osgGA/GUIEventAdapter.cpp | 7 +++++++ src/osgViewer/GraphicsWindowCarbon.cpp | 4 ++++ src/osgViewer/GraphicsWindowWin32.cpp | 2 ++ src/osgViewer/GraphicsWindowX11.cpp | 2 ++ 6 files changed, 26 insertions(+) diff --git a/examples/osgkeyboard/osgkeyboard.cpp b/examples/osgkeyboard/osgkeyboard.cpp index 1666405a4..fb13f183a 100644 --- a/examples/osgkeyboard/osgkeyboard.cpp +++ b/examples/osgkeyboard/osgkeyboard.cpp @@ -371,6 +371,9 @@ public: { #if 1 + +// osg::notify(osg::NOTICE)<<"Mouse "<