Introduced new scheme for handling mouse events with osgViewer. The new scheme enables robust event handling even when using distortion correction render to texture Cameras.

This commit is contained in:
Robert Osfield
2013-05-03 19:26:27 +00:00
parent 63088ab63e
commit 668d351765
36 changed files with 1116 additions and 698 deletions

View File

@@ -251,6 +251,9 @@ void GraphicsWindowCarbon::init()
}
_valid = (_pixelFormat != NULL);
_initialized = true;
// make sure the event queue has the correct window rectangle size and input range
getEventQueue()->syncWindowRectangleWithGraphcisContext();
}
bool GraphicsWindowCarbon::setWindowDecorationImplementation(bool flag)
@@ -452,6 +455,10 @@ bool GraphicsWindowCarbon::realizeImplementation()
_currentVSync = _traits->vsync;
_realized = true;
// make sure the event queue has the correct window rectangle size and input range
getEventQueue()->syncWindowRectangleWithGraphcisContext();
return _realized;
}