Minor compilation fix

This commit is contained in:
pelya
2014-01-03 18:25:36 +02:00
committed by Sergii Pylypenko
parent 78e453c1ab
commit 062da2afb8

View File

@@ -28,13 +28,16 @@
#endif #endif
#include "kdrive.h" #include "kdrive.h"
#include <SDL/SDL.h> #include <SDL/SDL.h>
#include <SDL/SDL_screenkeyboard.h>
#include <X11/keysym.h> #include <X11/keysym.h>
#ifdef __ANDROID__
#include <SDL/SDL_screenkeyboard.h>
#include <android/log.h> #include <android/log.h>
// DEBUG // DEBUG
//#define printf(...) //#define printf(...)
#define printf(...) __android_log_print(ANDROID_LOG_INFO, "XSDL", __VA_ARGS__) #define printf(...) __android_log_print(ANDROID_LOG_INFO, "XSDL", __VA_ARGS__)
#endif
static void xsdlFini(void); static void xsdlFini(void);
static Bool sdlScreenInit(KdScreenInfo *screen); static Bool sdlScreenInit(KdScreenInfo *screen);
@@ -375,12 +378,14 @@ void sdlPollInput(void)
break; break;
case SDL_KEYDOWN: case SDL_KEYDOWN:
case SDL_KEYUP: case SDL_KEYUP:
#ifdef __ANDROID__
if (event.key.keysym.sym == SDLK_HELP) if (event.key.keysym.sym == SDLK_HELP)
{ {
if(event.type == SDL_KEYUP) if(event.type == SDL_KEYUP)
SDL_ANDROID_ToggleScreenKeyboardWithoutTextInput(); SDL_ANDROID_ToggleScreenKeyboardWithoutTextInput();
} }
else else
#endif
if (event.key.keysym.sym == SDLK_UNDO) if (event.key.keysym.sym == SDLK_UNDO)
{ {
if(event.type == SDL_KEYUP) if(event.type == SDL_KEYUP)