Browse Source

Fix touch-drag events

pull/1037/head
Ivan Epifanov 5 years ago committed by Anders Jenbo
parent
commit
1878d7fdd7
  1. 2
      SourceX/miniwin/misc_msg.cpp

2
SourceX/miniwin/misc_msg.cpp

@ -450,7 +450,7 @@ bool PeekMessage(LPMSG lpMsg)
break;
}
return true;
} else if (e.type < SDL_JOYAXISMOTION || e.type >= 0x700) {
} else if (e.type < SDL_JOYAXISMOTION || (e.type >= 0x700 && e.type < 0x800)) {
if (!mouseWarping || e.type != SDL_MOUSEMOTION)
sgbControllerActive = false;
if (mouseWarping && e.type == SDL_MOUSEMOTION)

Loading…
Cancel
Save