diff options
author | Johannes Schickel | 2008-04-06 15:31:57 +0000 |
---|---|---|
committer | Johannes Schickel | 2008-04-06 15:31:57 +0000 |
commit | 6552193ceb2362cfd0e7399b6a3b99bb6b537d5f (patch) | |
tree | 8ec585f9bc2490e722b5c87b89672c7ff3f95e51 | |
parent | abf7914b8137b47f98bbad09c70c86f7f2cb0cc4 (diff) | |
download | scummvm-rg350-6552193ceb2362cfd0e7399b6a3b99bb6b537d5f.tar.gz scummvm-rg350-6552193ceb2362cfd0e7399b6a3b99bb6b537d5f.tar.bz2 scummvm-rg350-6552193ceb2362cfd0e7399b6a3b99bb6b537d5f.zip |
Fixed mouse input handling when entering savefile description.
svn-id: r31436
-rw-r--r-- | engines/kyra/gui_v2.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/engines/kyra/gui_v2.cpp b/engines/kyra/gui_v2.cpp index 0c459ad51c..bf6cc595ca 100644 --- a/engines/kyra/gui_v2.cpp +++ b/engines/kyra/gui_v2.cpp @@ -1966,7 +1966,7 @@ const char *GUI_v2::nameInputProcess(char *buffer, int x, int y, uint8 c1, uint8 _keyPressed.reset(); _cancelNameInput = _finishNameInput = false; - while (running) { + while (running && !_vm->quit()) { processHighlights(_savenameMenu, _vm->_mouseX, _vm->_mouseY); checkTextfieldInput(); if (_keyPressed.keycode == Common::KEYCODE_RETURN || _keyPressed.keycode == Common::KEYCODE_KP_ENTER || _finishNameInput) { @@ -2057,11 +2057,12 @@ void GUI_v2::checkTextfieldInput() { running = false; break; + case Common::EVENT_LBUTTONDOWN: case Common::EVENT_LBUTTONUP: { Common::Point pos = _vm->getMousePos(); _vm->_mouseX = pos.x; _vm->_mouseY = pos.y; - keys = 199; + keys = event.type == Common::EVENT_LBUTTONDOWN ? 199 : (200 | 0x800); running = false; } break; |