mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-04-20 03:45:26 +00:00
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:
parent
06f6819d63
commit
4a8f6737b6
2 changed files with 15 additions and 15 deletions
|
|
@ -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:
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue