diff options
author | dhewg | 2011-03-13 23:23:29 +0100 |
---|---|---|
committer | dhewg | 2011-03-13 23:31:04 +0100 |
commit | ecd265b539452cfbd5eee96b5e4817dbed397d72 (patch) | |
tree | 0af84d7bd7f9a6e13f2fb42d7695765d248b8a03 | |
parent | df9167c6b33fbfcb259480c14b08be5c32de6fd3 (diff) | |
download | scummvm-rg350-ecd265b539452cfbd5eee96b5e4817dbed397d72.tar.gz scummvm-rg350-ecd265b539452cfbd5eee96b5e4817dbed397d72.tar.bz2 scummvm-rg350-ecd265b539452cfbd5eee96b5e4817dbed397d72.zip |
ANDROID: Center mouse on overlay visibility changes
-rw-r--r-- | backends/platform/android/gfx.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/backends/platform/android/gfx.cpp b/backends/platform/android/gfx.cpp index 06387e09fe..dc8acaca29 100644 --- a/backends/platform/android/gfx.cpp +++ b/backends/platform/android/gfx.cpp @@ -546,6 +546,13 @@ void OSystem_Android::clearFocusRectangle() { void OSystem_Android::showOverlay() { ENTER(); + Common::Event e; + e.type = Common::EVENT_MOUSEMOVE; + e.mouse.x = _egl_surface_width / 2; + e.mouse.y = _egl_surface_height / 2; + + pushEvent(e); + _show_overlay = true; _force_redraw = true; @@ -555,6 +562,13 @@ void OSystem_Android::showOverlay() { void OSystem_Android::hideOverlay() { ENTER(); + Common::Event e; + e.type = Common::EVENT_MOUSEMOVE; + e.mouse.x = _egl_surface_width / 2; + e.mouse.y = _egl_surface_height / 2; + + pushEvent(e); + _show_overlay = false; _force_redraw = true; |