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

@ -434,7 +434,7 @@ void PlatformWindowSDL::_triggerMouseLocationNotify(const SDL_Event& evt)
void PlatformWindowSDL::_triggerMouseWheelNotify(const SDL_Event& evt)
{
mouseEvent.trigger(getWindowId(), 0, evt.wheel.y, evt.wheel.y, false);
wheelEvent.trigger(getWindowId(), 0, evt.wheel.x, evt.wheel.y);
}
void PlatformWindowSDL::_triggerMouseButtonNotify(const SDL_Event& event)
@ -535,17 +535,17 @@ void PlatformWindowSDL::_processSDLEvent(SDL_Event &evt)
break;
}
case SDL_MOUSEMOTION:
{
_triggerMouseLocationNotify(evt);
break;
}
case SDL_MOUSEWHEEL:
{
_triggerMouseWheelNotify(evt);
break;
}
case SDL_MOUSEMOTION:
{
_triggerMouseLocationNotify(evt);
break;
}
case SDL_MOUSEBUTTONDOWN:
case SDL_MOUSEBUTTONUP:
{