Hide system mouse pointer in Android Nougat and higher

This commit is contained in:
Sergii Pylypenko
2017-09-20 21:34:42 +03:00
parent 5783d6eeea
commit 97b73144ff

View File

@@ -30,6 +30,7 @@
#include <SDL.h>
#ifdef __ANDROID__
#include <SDL_screenkeyboard.h>
#include <SDL_android.h>
#endif
#include "../safeguards.h"
@@ -429,6 +430,7 @@ bool VideoDriver_SDL::CreateMainSurface(uint w, uint h)
if (!_multitouch_device) {
_multitouch_device = SDL_JoystickOpen(0);
}
SDL_ANDROID_SetSystemMousePointerVisible(0); // We have our own cursor, only works on Android N
#endif
return true;