diff options
author | Gregory Montoir | 2006-11-07 22:24:48 +0000 |
---|---|---|
committer | Gregory Montoir | 2006-11-07 22:24:48 +0000 |
commit | f6f1dac199a972339b30f14f5d7630fd0807f670 (patch) | |
tree | 8c64318ce7eb15bdd3a686eff464b9e6eced8eba /engines/touche/ui.cpp | |
parent | e1efdfc7f6553250840f910764ca3a70590be82d (diff) | |
download | scummvm-rg350-f6f1dac199a972339b30f14f5d7630fd0807f670.tar.gz scummvm-rg350-f6f1dac199a972339b30f14f5d7630fd0807f670.tar.bz2 scummvm-rg350-f6f1dac199a972339b30f14f5d7630fd0807f670.zip |
cleanup
svn-id: r24654
Diffstat (limited to 'engines/touche/ui.cpp')
-rw-r--r-- | engines/touche/ui.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/engines/touche/ui.cpp b/engines/touche/ui.cpp index 4e50ac627d..1732acd24e 100644 --- a/engines/touche/ui.cpp +++ b/engines/touche/ui.cpp @@ -108,7 +108,7 @@ bool ToucheEngine::ui_processEvents() { case OSystem::EVENT_LBUTTONDOWN: _inp_mousePos.x = event.mouse.x; _inp_mousePos.y = event.mouse.y; - _inp_mouseButtonClicked = true; + _inp_leftMouseButtonPressed = true; break; case OSystem::EVENT_LBUTTONUP: _inp_mousePos.x = event.mouse.x; @@ -288,7 +288,7 @@ int ToucheEngine::ui_handleSaveLoad(SaveLoadMode mode) { int button = -1; while (button == -1 && !quitMenu) { button = ui_getButtonPressed(buttonsRectTable1, 15); - if (!_inp_mouseButtonClicked) { + if (!_inp_leftMouseButtonPressed) { button = -1; } if (mode == kSaveGameState) { @@ -300,7 +300,7 @@ int ToucheEngine::ui_handleSaveLoad(SaveLoadMode mode) { } quitMenu = ui_processEvents(); } - _inp_mouseButtonClicked = false; + _inp_leftMouseButtonPressed = false; switch (button) { case 10: _saveLoadCurrentPage -= 10; @@ -320,7 +320,7 @@ int ToucheEngine::ui_handleSaveLoad(SaveLoadMode mode) { ret = 2; } } else { - if (loadGameState(_saveLoadCurrentSlot, _saveLoadDescriptionsTable[_saveLoadCurrentSlot % 10])) { + if (loadGameState(_saveLoadCurrentSlot)) { ret = 2; } } @@ -353,7 +353,7 @@ void ToucheEngine::ui_handleOptions(int forceDisplay) { ui_drawOptionsMenu(); int button = -1; while (button == -1 && !quitMenu) { - if (_inp_mouseButtonClicked) { + if (_inp_leftMouseButtonPressed) { button = ui_getButtonPressed(buttonsRectTable1, 15); if (button < 10) { button = ui_getButtonPressed(buttonsRectTable2, 10) + 20; @@ -361,7 +361,7 @@ void ToucheEngine::ui_handleOptions(int forceDisplay) { } quitMenu = ui_processEvents(); } - _inp_mouseButtonClicked = false; + _inp_leftMouseButtonPressed = false; switch (button) { case 10: if (ui_handleSaveLoad(kLoadGameState) == 2) { |