Skip to content
Permalink
Browse files

- fixed access to wrong event data in SDL backend

Wrong button state event data were read on mouse motion

https://forum.zdoom.org/viewtopic.php?t=64950
  • Loading branch information...
alexey-lysiuk committed Jun 8, 2019
1 parent 56dcbe8 commit 024456048e70ea035318a1f7c0f977dc964f7d5b
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/posix/sdl/i_input.cpp
@@ -307,7 +307,7 @@ void MessagePump (const SDL_Event &sev)
case SDL_MOUSEBUTTONDOWN:
case SDL_MOUSEBUTTONUP:
case SDL_MOUSEMOTION:
if (!GUICapture || sev.button.button == 4 || sev.button.button == 5)
if (!GUICapture || (sev.type != SDL_MOUSEMOTION && (sev.button.button == 4 || sev.button.button == 5)))
{
if(sev.type != SDL_MOUSEMOTION)
{

0 comments on commit 0244560

Please sign in to comment.
You can’t perform that action at this time.