From 068919bc4c16dcda274a6315d164dd6897fbf8c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sven=20Bergstr=C3=B6m?= Date: Thu, 10 Apr 2014 16:06:42 -0230 Subject: [PATCH] Fixing bug where mouse resets when leaving window When moving the mouse outside, it is reset to 0,0 and when alt tabbing some high value garbage numbers were sent. This missing break was the cause, because WINDOWEVENT was being handled and pumped by MOUSEMOTION as well. *smh* Fixes https://github.com/openfl/openfl-native/issues/162 for sure, possibly other mouse/window related issues. Let's test any mouse related issues against this? --- project/src/backend/sdl2/SDL2Stage.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/project/src/backend/sdl2/SDL2Stage.cpp b/project/src/backend/sdl2/SDL2Stage.cpp index 8687394b7..bff743275 100644 --- a/project/src/backend/sdl2/SDL2Stage.cpp +++ b/project/src/backend/sdl2/SDL2Stage.cpp @@ -1109,6 +1109,9 @@ void ProcessEvent(SDL_Event &inEvent) } default: break; } + + break; + } case SDL_MOUSEMOTION: {