Add: allow touch screen events on fullscreen

This commit is contained in:
AreaScout 2018-09-16 07:11:15 +00:00
parent 66e13f774d
commit 57bf9e3048

View File

@ -684,7 +684,6 @@ int main(int argc, char *argv[]) {
}
case SDL_FINGERMOTION:
{
if (!g_Config.bFullScreen) { break; }
SDL_GetWindowSize(window, &w, &h);
touchEvent.type = SDL_MOUSEMOTION;
touchEvent.motion.type = SDL_MOUSEMOTION;
@ -702,7 +701,6 @@ int main(int argc, char *argv[]) {
}
case SDL_FINGERDOWN:
{
if (!g_Config.bFullScreen) { break; }
SDL_GetWindowSize(window, &w, &h);
touchEvent.type = SDL_MOUSEBUTTONDOWN;
touchEvent.button.type = SDL_MOUSEBUTTONDOWN;
@ -732,7 +730,6 @@ int main(int argc, char *argv[]) {
}
case SDL_FINGERUP:
{
if(!g_Config.bFullScreen) { break; }
SDL_GetWindowSize(window, &w, &h);
touchEvent.type = SDL_MOUSEBUTTONUP;
touchEvent.button.type = SDL_MOUSEBUTTONUP;