From 4eb37d4d7fb8b6e0ec2bb713063fe0f042282eff Mon Sep 17 00:00:00 2001 From: Romain Goyet Date: Fri, 8 Mar 2019 18:18:01 +0100 Subject: [PATCH] [ion/sdl] Small cleanup --- ion/src/sdl/shared/events_keyboard_platform.cpp | 8 -------- 1 file changed, 8 deletions(-) diff --git a/ion/src/sdl/shared/events_keyboard_platform.cpp b/ion/src/sdl/shared/events_keyboard_platform.cpp index 0efe4f631..93f76908d 100644 --- a/ion/src/sdl/shared/events_keyboard_platform.cpp +++ b/ion/src/sdl/shared/events_keyboard_platform.cpp @@ -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)) {