diff options
-rw-r--r-- | backends/dc/dc.h | 3 | ||||
-rw-r--r-- | backends/dc/display.cpp | 6 |
2 files changed, 8 insertions, 1 deletions
diff --git a/backends/dc/dc.h b/backends/dc/dc.h index 686c590b6b..c1f3aa09e4 100644 --- a/backends/dc/dc.h +++ b/backends/dc/dc.h @@ -23,7 +23,8 @@ class OSystem_Dreamcast : public OSystem { // Either show or hide the mouse cursor bool show_mouse(bool visible); - + void warp_mouse(int x, int y); + // Set the position of the mouse cursor void set_mouse_pos(int x, int y); diff --git a/backends/dc/display.cpp b/backends/dc/display.cpp index 1c0da86596..aabdbdd87b 100644 --- a/backends/dc/display.cpp +++ b/backends/dc/display.cpp @@ -237,6 +237,12 @@ void OSystem_Dreamcast::set_mouse_pos(int x, int y) _ms_cur_y = y; } +void OSystem_Dreamcast::warp_mouse(int x, int y) +{ + _ms_cur_x = x; + _ms_cur_y = y; +} + void OSystem_Dreamcast::set_mouse_cursor(const byte *buf, uint w, uint h, int hotspot_x, int hotspot_y) { |