diff --git a/src/system/input.c b/src/system/input.c index a0851fa..6f4e4dc 100644 --- a/src/system/input.c +++ b/src/system/input.c @@ -54,6 +54,13 @@ void doMouseWheel(SDL_MouseWheelEvent *event) } } +void setMouse(int x, int y) +{ + app.mouse.x = x; + app.mouse.y = y; + SDL_WarpMouseInWindow(app.window, x, y); +} + void drawMouse(void) { int x, y;