Mouse wheel check has to occur before mouse motion. Apparently the one is a subset of the other. also thanks @dottools for the proper codeline.

This commit is contained in:
Azaezel 2015-07-29 20:36:33 -05:00
parent 06f6819d63
commit 4a8f6737b6
2 changed files with 15 additions and 15 deletions

View file

@ -214,14 +214,6 @@ void PlatformWindowManagerSDL::_process()
break;
}
case SDL_MOUSEMOTION:
{
PlatformWindowSDL *window = mWindowMap[evt.motion.windowID];
if(window)
window->_processSDLEvent(evt);
break;
}
case SDL_MOUSEWHEEL:
{
PlatformWindowSDL *window = mWindowMap[evt.wheel.windowID];
@ -230,6 +222,14 @@ void PlatformWindowManagerSDL::_process()
break;
}
case SDL_MOUSEMOTION:
{
PlatformWindowSDL *window = mWindowMap[evt.motion.windowID];
if(window)
window->_processSDLEvent(evt);
break;
}
case SDL_MOUSEBUTTONDOWN:
case SDL_MOUSEBUTTONUP:
{