Browse Source

Add comment to logic that skips handling touch-generated mouse events

pull/2880/head
staphen 5 years ago committed by Anders Jenbo
parent
commit
1b2d4d9478
  1. 2
      Source/miniwin/misc_msg.cpp

2
Source/miniwin/misc_msg.cpp

@ -317,6 +317,8 @@ bool FetchMessage_Real(tagMSG *lpMsg)
#if !defined(USE_SDL1) && !defined(__vita__)
if (!movie_playing) {
// SDL generates mouse events from touch-based inputs to provide basic
// touchscreeen support for apps that don't explicitly handle touch events
if (IsAnyOf(e.type, SDL_MOUSEBUTTONDOWN, SDL_MOUSEBUTTONUP) && e.button.which == SDL_TOUCH_MOUSEID)
return true;
if (e.type == SDL_MOUSEMOTION && e.motion.which == SDL_TOUCH_MOUSEID)

Loading…
Cancel
Save