mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-11 22:54:34 +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
|
|
@ -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:
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue