Restore screenshot key functionality

This commit is contained in:
scrawl 2015-06-03 17:25:18 +02:00
parent 2a85a22dba
commit e642f20a65
3 changed files with 63 additions and 18 deletions

View file

@ -41,6 +41,8 @@ InputWrapper::InputWrapper(SDL_Window* window, osg::ref_ptr<osgViewer::Viewer> v
void InputWrapper::capture(bool windowEventsOnly)
{
mViewer->getEventQueue()->frame(0.f);
SDL_PumpEvents();
SDL_Event evt;