From 2989e070d4f05796cd8d72f18264465bf1deb5b9 Mon Sep 17 00:00:00 2001 From: Sergii Pylypenko Date: Fri, 13 Jun 2014 21:56:09 +0300 Subject: [PATCH] Move cursor to the center of the screen after changing video mode --- project/jni/sdl-1.2/src/video/android/SDL_androidvideo-1.2.c | 3 +++ todo.txt | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/project/jni/sdl-1.2/src/video/android/SDL_androidvideo-1.2.c b/project/jni/sdl-1.2/src/video/android/SDL_androidvideo-1.2.c index cc0982a99..bcbb90aaa 100644 --- a/project/jni/sdl-1.2/src/video/android/SDL_androidvideo-1.2.c +++ b/project/jni/sdl-1.2/src/video/android/SDL_androidvideo-1.2.c @@ -33,6 +33,7 @@ #include "SDL_video-1.3.h" #include "SDL_surface.h" #include "SDL_androidvideo.h" +#include "SDL_androidinput.h" #include #include @@ -505,6 +506,8 @@ SDL_Surface *ANDROID_SetVideoMode(_THIS, SDL_Surface *current, UpdateScreenUnderFingerRect(0,0); SDL_ANDROID_ShowScreenUnderFingerRect.w = SDL_ANDROID_ShowScreenUnderFingerRect.h = 0; SDL_ANDROID_SetHoverDeadzone(); + SDL_ANDROID_currentMouseX = SDL_ANDROID_sFakeWindowWidth / 2; + SDL_ANDROID_currentMouseY = SDL_ANDROID_sFakeWindowHeight / 2; /* We're done */ return(current); diff --git a/todo.txt b/todo.txt index 932d64146..057f3f67f 100644 --- a/todo.txt +++ b/todo.txt @@ -17,12 +17,12 @@ TODO, which will get actually done - SDL: cloud save support. -- SDL: move mouse to the center of the screen after changing video mode. - - SDL: make sub-frame touch events as an user-configurable option. - SDL: control mouse with right analog gamepad stick. +- SDL: user-configurable option to set screen orientation. + - OpenTTD: 16bpp blitter with palette animation support. - OpenTTD: screen navigation buttons bug out OpentTD on Moto G.