diff options
-rw-r--r-- | Widgets/EventLoopSDL.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Widgets/EventLoopSDL.cpp b/Widgets/EventLoopSDL.cpp index f607c3be15..383a873158 100644 --- a/Widgets/EventLoopSDL.cpp +++ b/Widgets/EventLoopSDL.cpp @@ -46,6 +46,9 @@ void EventLoopSDL::waitForEvent() case SDL_MOUSEBUTTONDOWN: postEvent(&AbstractScreen::the(), make<MouseEvent>(Event::MouseDown, sdlEvent.button.x, sdlEvent.button.y, toMouseButton(sdlEvent.button.button))); return; + case SDL_MOUSEBUTTONUP: + postEvent(&AbstractScreen::the(), make<MouseEvent>(Event::MouseUp, sdlEvent.button.x, sdlEvent.button.y, toMouseButton(sdlEvent.button.button))); + return; } } } |