Windows: Add a menu command to control automatic mouse movement

This commit is contained in:
kichikuou
2022-08-07 17:36:13 +09:00
parent b1a2221f9f
commit 2f55371c10
5 changed files with 41 additions and 24 deletions
+2
View File
@@ -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);
}