diff options
Diffstat (limited to 'backends/events/webossdl')
-rw-r--r-- | backends/events/webossdl/webossdl-events.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/backends/events/webossdl/webossdl-events.cpp b/backends/events/webossdl/webossdl-events.cpp index 102eb5802e..acc54e0bd2 100644 --- a/backends/events/webossdl/webossdl-events.cpp +++ b/backends/events/webossdl/webossdl-events.cpp @@ -32,6 +32,7 @@ #include "backends/events/webossdl/webossdl-events.h" #include "gui/message.h" +#include "engines/engine.h" // Inidicates if gesture area is pressed down or not. static bool gestureDown = false; @@ -176,6 +177,15 @@ bool WebOSSdlEventSource::handleMouseButtonUp(SDL_Event &ev, Common::Event &even if (motionPtrIndex == ev.button.which) { motionPtrIndex = -1; + int screenY = g_system->getHeight(); + // 60% of the screen height for menu dialog + if (ABS(dragDiffY) >= ABS(screenY*0.6)) { + if (g_engine && !g_engine->isPaused()) { + g_engine->openMainMenuDialog(); + return true; + } + } + // When drag mode was active then simply send a mouse up event if (dragging) { |