diff options
author | Doron Rosenberg | 2011-08-04 10:50:19 -0700 |
---|---|---|
committer | Doron Rosenberg | 2011-08-04 10:50:19 -0700 |
commit | 82a3cc0ac06e598e069ad207ab741cd7397df329 (patch) | |
tree | 21a8e99ea47c1bba66b452c943f592be7b53a44b /backends | |
parent | 0ceb7b4ccd89150e46f92545bf4bdbb070cede12 (diff) | |
download | scummvm-rg350-82a3cc0ac06e598e069ad207ab741cd7397df329.tar.gz scummvm-rg350-82a3cc0ac06e598e069ad207ab741cd7397df329.tar.bz2 scummvm-rg350-82a3cc0ac06e598e069ad207ab741cd7397df329.zip |
WebOS: fix indentation, make sure to return true when opening the keyboard
Diffstat (limited to 'backends')
-rw-r--r-- | backends/events/webossdl/webossdl-events.cpp | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/backends/events/webossdl/webossdl-events.cpp b/backends/events/webossdl/webossdl-events.cpp index 00cbf39d08..cec990e775 100644 --- a/backends/events/webossdl/webossdl-events.cpp +++ b/backends/events/webossdl/webossdl-events.cpp @@ -141,10 +141,10 @@ bool WebOSSdlEventSource::handleKeyUp(SDL_Event &ev, Common::Event &event) { // handle virtual keyboard dismiss key if (ev.key.keysym.sym == 24) { - int gblPDKVersion = PDL_GetPDKVersion(); - // check for correct PDK Version - if (gblPDKVersion >= 300) { - PDL_SetKeyboardState(PDL_FALSE); + int gblPDKVersion = PDL_GetPDKVersion(); + // check for correct PDK Version + if (gblPDKVersion >= 300) { + PDL_SetKeyboardState(PDL_FALSE); return true; } } @@ -191,20 +191,21 @@ bool WebOSSdlEventSource::handleMouseButtonUp(SDL_Event &ev, Common::Event &even int screenY = g_system->getHeight(); // 60% of the screen height for menu dialog/keyboard - if (ABS(dragDiffY) >= ABS(screenY*0.6)) { + if (ABS(dragDiffY) >= ABS(screenY*0.6)) { if (dragDiffY >= 0) { int gblPDKVersion = PDL_GetPDKVersion(); // check for correct PDK Version if (gblPDKVersion >= 300) { PDL_SetKeyboardState(PDL_TRUE); + return true; } } else { - if (g_engine && !g_engine->isPaused()) { - g_engine->openMainMenuDialog(); - return true; + 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) |