[ion/sdl] Small cleanup

This commit is contained in:
Romain Goyet
2019-03-08 18:18:01 +01:00
parent 880851f75b
commit 4eb37d4d7f

View File

@@ -7,8 +7,6 @@
namespace Ion {
namespace Events {
static Event eventFromSDLKeyboardEvent(SDL_KeyboardEvent event) {
if (event.keysym.mod & KMOD_CTRL) {
switch (event.keysym.sym) {
@@ -88,11 +86,6 @@ static Event eventFromSDLKeyboardEvent(SDL_KeyboardEvent event) {
case SDLK_BACKSPACE:
return Backspace;
}
/*
if (event.keysym.unicode >= 32 && event.keysym.unicode < 127) {
return sEventForASCIICharAbove32[event.keysym.unicode-32];
}
*/
return None;
}
@@ -122,7 +115,6 @@ static Event eventFromSDLTextInputEvent(SDL_TextInputEvent event) {
return None;
}
Event getPlatformEvent() {
SDL_Event event;
while (SDL_PollEvent(&event)) {