move Set_mouse_position() to sdlscreen.c / win32screen.c / etc.

This commit is contained in:
Thomas Bernard
2019-02-04 18:20:51 +01:00
parent d5645dec26
commit 206c67e77c
6 changed files with 31 additions and 11 deletions

View File

@@ -778,3 +778,12 @@ void Define_icon(void)
}
}
}
void Set_mouse_position(void)
{
#if defined(USE_SDL)
SDL_WarpMouse(Mouse_X*Pixel_width, Mouse_Y*Pixel_height);
#elif defined(USE_SDL2)
SDL_WarpMouseInWindow(NULL, Mouse_X*Pixel_width, Mouse_Y*Pixel_height);
#endif
}