fixed some mouse related mistakes in main.cpp of the SDL build (#55)

This commit is contained in:
Alexander Argentakis
2023-08-16 11:38:36 +03:00
committed by GitHub
parent f83807d65c
commit 5e8119d279

View File

@@ -93,15 +93,13 @@ static void handle_events()
}
case SDL_MOUSEMOTION:
{
Mouse::_x = event.motion.x;
Mouse::_y = event.motion.y;
Mouse::feed(0, 0, event.motion.x, event.motion.y);
g_AppPlatform->setMouseDiff(event.motion.xrel, event.motion.yrel);
break;
}
case SDL_MOUSEWHEEL:
{
Mouse::feed(3, event.wheel.y, Mouse::_x, Mouse::_y);
Mouse::feed(3, event.wheel.y, Mouse::getX(), Mouse::getY());
break;
}
case SDL_TEXTINPUT: