Skip to content

Commit

Permalink
Add: allow touch screen events on fullscreen
Browse files Browse the repository at this point in the history
  • Loading branch information
AreaScout committed Sep 16, 2018
1 parent 66e13f7 commit 57bf9e3
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions SDL/SDLMain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 57bf9e3

Please sign in to comment.