mirror of
https://github.com/kichikuou/system3-sdl2.git
synced 2026-09-30 02:48:10 +03:00
Windows: Add a menu command to control automatic mouse movement
This commit is contained in:
@@ -114,6 +114,8 @@ void NACT::get_cursor(int* x, int* y)
|
||||
|
||||
void NACT::set_cursor(int x, int y)
|
||||
{
|
||||
if (!mouse_move_enabled)
|
||||
return;
|
||||
ags->translate_mouse_coords(&x, &y);
|
||||
SDL_WarpMouseInWindow(g_window, x, y);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user