Fixed mlx_mouse_move() not updating mouse position

Removed SDL_FlushEvent(SDL_MOUSEMOTION) preventing Input::update() from catching new mouse position after a mlx_mouse_move() call
This commit is contained in:
Namonay
2024-01-12 04:24:24 +01:00
parent eaa1b9afd0
commit 178690cff3

View File

@@ -42,7 +42,6 @@ namespace mlx::core
}
SDL_WarpMouseInWindow(_graphics[*static_cast<int*>(win)]->getWindow()->getNativeWindow(), x, y);
SDL_PumpEvents();
SDL_FlushEvent(SDL_MOUSEMOTION);
}
void Application::onEvent(void* win, int event, int (*funct_ptr)(int, void*), void* param) noexcept