From 8519bc1a55664e85fddf9dd07b186d9e2c220cb2 Mon Sep 17 00:00:00 2001 From: kichikuou Date: Mon, 11 Jan 2021 20:48:49 +0900 Subject: [PATCH] Implement NACT::set_cursor() --- src/sys/nact_input.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/sys/nact_input.cpp b/src/sys/nact_input.cpp index ed874b7..c663299 100644 --- a/src/sys/nact_input.cpp +++ b/src/sys/nact_input.cpp @@ -13,6 +13,7 @@ #include "ags.h" #include "texthook.h" +extern SDL_Window* g_window; static int mousex, mousey, fingers; void NACT::pump_events() @@ -104,6 +105,6 @@ void NACT::get_cursor(int* x, int* y) void NACT::set_cursor(int x, int y) { - // TODO: implement + SDL_WarpMouseInWindow(g_window, x, y); }