aboutsummaryrefslogtreecommitdiff
path: root/backends/dc
diff options
context:
space:
mode:
authorMarcus Comstedt2003-03-02 17:41:47 +0000
committerMarcus Comstedt2003-03-02 17:41:47 +0000
commitd39952106c4ca9931fff4785c354c2fa6c36d205 (patch)
treef84fbe93cbbd35c1c2d2be7d236ce91c43d81b42 /backends/dc
parent086a89f365a26796ba58e1809a7984b5d42cee51 (diff)
downloadscummvm-rg350-d39952106c4ca9931fff4785c354c2fa6c36d205.tar.gz
scummvm-rg350-d39952106c4ca9931fff4785c354c2fa6c36d205.tar.bz2
scummvm-rg350-d39952106c4ca9931fff4785c354c2fa6c36d205.zip
warp_mouse added.
svn-id: r6664
Diffstat (limited to 'backends/dc')
-rw-r--r--backends/dc/dc.h3
-rw-r--r--backends/dc/display.cpp6
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)
{