Readded HW cursor manager (no image rotation yet)

This commit is contained in:
scrawl 2015-05-13 18:56:14 +02:00
parent 4825744a03
commit 9ea416b852
15 changed files with 270 additions and 276 deletions

View file

@ -82,10 +82,20 @@ InputWrapper::InputWrapper(SDL_Window* window, osg::ref_ptr<osgViewer::Viewer> v
case SDL_KEYDOWN:
if (!evt.key.repeat)
mKeyboardListener->keyPressed(evt.key);
// temporary for the stats viewer
if (evt.key.keysym.sym == SDLK_s)
mViewer->getEventQueue()->keyPress('s');
break;
case SDL_KEYUP:
if (!evt.key.repeat)
mKeyboardListener->keyReleased(evt.key);
// temporary for the stats viewer
if (evt.key.keysym.sym == SDLK_s)
mViewer->getEventQueue()->keyRelease('s');
break;
case SDL_TEXTINPUT:
mKeyboardListener->textInput(evt.text);