From fefb8f9927f38a00d17df130f863510bfaa9b7e7 Mon Sep 17 00:00:00 2001 From: Romain Goyet Date: Thu, 28 Feb 2019 09:28:39 +0100 Subject: [PATCH] [ion/sdl] Discard unused file --- ion/src/sdl/Makefile | 1 - ion/src/sdl/shared/keyboard.cpp | 63 --------------------------------- ion/src/sdl/shared/keyboard.h | 19 ---------- 3 files changed, 83 deletions(-) delete mode 100644 ion/src/sdl/shared/keyboard.cpp delete mode 100644 ion/src/sdl/shared/keyboard.h diff --git a/ion/src/sdl/Makefile b/ion/src/sdl/Makefile index 8917a7692..ee90789dd 100644 --- a/ion/src/sdl/Makefile +++ b/ion/src/sdl/Makefile @@ -20,7 +20,6 @@ objs += $(addprefix ion/src/sdl/shared/, \ display.o \ events.o \ main.o \ - keyboard.o \ layout.o \ ) diff --git a/ion/src/sdl/shared/keyboard.cpp b/ion/src/sdl/shared/keyboard.cpp deleted file mode 100644 index 7ebf1b8a6..000000000 --- a/ion/src/sdl/shared/keyboard.cpp +++ /dev/null @@ -1,63 +0,0 @@ -#include "keyboard.h" -#include - -#include - -#include "images.h" - -#define APPNAME "MyApp" - -namespace Ion { -namespace Keyboard { - -State scan() { - return State(0); -} - -} -} - -namespace Ion { -namespace SDL { -namespace Keyboard { - -using namespace Ion::Keyboard; - -static SDL_Rect s_rect; - -void init(SDL_Rect rect) { - s_rect = rect; -} - -static SDL_Rect rectForKey(Key k) { - int i = static_cast(k); - return {i%10, i/10, 10, 10}; -} - -void drawOnSurface(SDL_Surface * surface) { - for (int i=0; iformat, 0xFF, 0x00, 0xFF)); - } -} - -Key keyAt(SDL_Point p) { - __android_log_print(ANDROID_LOG_VERBOSE, APPNAME, "Looking up %dx%d", p.x, p.y); - for (int i=0; i -#include -#include - -namespace Ion { -namespace SDL { -namespace Keyboard { - -void drawOnSurface(SDL_Surface * surface); -Ion::Keyboard::Key keyAt(SDL_Point p); - -} -} -} - -#endif