Add a window for touchscreen devices.

This commit is contained in:
Juanjo
2013-06-24 17:59:37 +02:00
committed by pelya
parent cf89f0ff5e
commit 06a276e5ad
12 changed files with 171 additions and 6 deletions
+5 -2
View File
@@ -23,6 +23,7 @@
#include "../core/random_func.hpp"
#include "../core/math_func.hpp"
#include "../fileio_func.h"
#include "../settings_type.h"
#include "sdl_v.h"
#include <SDL.h>
#ifdef __ANDROID__
@@ -769,8 +770,10 @@ void VideoDriver_SDL::MainLoop()
bool old_ctrl_pressed = _ctrl_pressed;
_ctrl_pressed = !!(mod & KMOD_CTRL);
_shift_pressed = !!(mod & KMOD_SHIFT);
if (_settings_client.gui.touchscreen_mode == TSC_NONE) {
_ctrl_pressed = !!(mod & KMOD_CTRL);
_shift_pressed = !!(mod & KMOD_SHIFT);
}
/* determine which directional keys are down */
_dirkeys =