|
|
@ -123,10 +123,12 @@ namespace SFO
|
|
|
|
mMouseListener->mouseReleased(evt.button, evt.button.button);
|
|
|
|
mMouseListener->mouseReleased(evt.button, evt.button.button);
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
case SDL_KEYDOWN:
|
|
|
|
case SDL_KEYDOWN:
|
|
|
|
_handleKeyPress(evt.key);
|
|
|
|
if (!evt.key.repeat)
|
|
|
|
|
|
|
|
_handleKeyPress(evt.key);
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
case SDL_KEYUP:
|
|
|
|
case SDL_KEYUP:
|
|
|
|
mKeyboardListener->keyReleased(evt.key);
|
|
|
|
if (!evt.key.repeat)
|
|
|
|
|
|
|
|
mKeyboardListener->keyReleased(evt.key);
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
case SDL_WINDOWEVENT:
|
|
|
|
case SDL_WINDOWEVENT:
|
|
|
|
handleWindowEvent(evt);
|
|
|
|
handleWindowEvent(evt);
|
|
|
|