Permalink
Browse files

Add: allow touch screen events on fullscreen

  • Loading branch information...
AreaScout committed Sep 16, 2018
1 parent 66e13f7 commit 57bf9e3048dbc3ddb24d7332701db8a3b7dde2cb
Showing with 0 additions and 3 deletions.
  1. +0 −3 SDL/SDLMain.cpp
View
@@ -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;

0 comments on commit 57bf9e3

Please sign in to comment.