Added setMouse function.

This commit is contained in:
Steve 2015-11-26 08:17:16 +00:00
parent 2bbe6a1e97
commit 416b50d7eb
1 changed files with 7 additions and 0 deletions

View File

@ -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;