diff options
author | Eugene Sandulenko | 2016-02-03 10:48:26 +0100 |
---|---|---|
committer | Eugene Sandulenko | 2016-02-14 17:12:58 +0100 |
commit | 63ef49ec8afa761b89b809811699321c6fe5826e (patch) | |
tree | 2cf3034645ebe4315173d8725f8553bfe39930c5 /engines/wage | |
parent | 52c317b842db2bb272f61b1e12af1777c42a38c8 (diff) | |
download | scummvm-rg350-63ef49ec8afa761b89b809811699321c6fe5826e.tar.gz scummvm-rg350-63ef49ec8afa761b89b809811699321c6fe5826e.tar.bz2 scummvm-rg350-63ef49ec8afa761b89b809811699321c6fe5826e.zip |
WAGE: Rename mouse event processor to add clarity
Diffstat (limited to 'engines/wage')
-rw-r--r-- | engines/wage/gui.cpp | 4 | ||||
-rw-r--r-- | engines/wage/gui.h | 4 | ||||
-rw-r--r-- | engines/wage/wage.cpp | 4 |
3 files changed, 6 insertions, 6 deletions
diff --git a/engines/wage/gui.cpp b/engines/wage/gui.cpp index 6285c487b2..1f07b2a382 100644 --- a/engines/wage/gui.cpp +++ b/engines/wage/gui.cpp @@ -612,7 +612,7 @@ void Gui::mouseMove(int x, int y) { } } -Designed *Gui::getClickTarget(int x, int y) { +Designed *Gui::mouseUp(int x, int y) { if (_menu->_menuActivated) { if (_menu->mouseRelease(x, y)) { _sceneDirty = true; @@ -648,7 +648,7 @@ Designed *Gui::getClickTarget(int x, int y) { return NULL; } -void Gui::mouseClick(int x, int y) { +void Gui::mouseDown(int x, int y) { if (_menu->mouseClick(x, y)) _menuDirty = true; } diff --git a/engines/wage/gui.h b/engines/wage/gui.h index b5f84e0c80..488543e485 100644 --- a/engines/wage/gui.h +++ b/engines/wage/gui.h @@ -93,8 +93,8 @@ public: void appendText(const char *str); void clearOutput(); void mouseMove(int x, int y); - void mouseClick(int x, int y); - Designed *getClickTarget(int x, int y); + void mouseDown(int x, int y); + Designed *mouseUp(int x, int y); void drawInput(); void setSceneDirty() { _sceneDirty = true; } const Graphics::Font *getFont(const char *name, Graphics::FontManager::FontUsage fallback); diff --git a/engines/wage/wage.cpp b/engines/wage/wage.cpp index 3d3fc6a293..043406f8fe 100644 --- a/engines/wage/wage.cpp +++ b/engines/wage/wage.cpp @@ -148,11 +148,11 @@ void WageEngine::processEvents() { _gui->mouseMove(event.mouse.x, event.mouse.y); break; case Common::EVENT_LBUTTONDOWN: - _gui->mouseClick(event.mouse.x, event.mouse.y); + _gui->mouseDown(event.mouse.x, event.mouse.y); break; case Common::EVENT_LBUTTONUP: { - Designed *obj = _gui->getClickTarget(event.mouse.x, event.mouse.y); + Designed *obj = _gui->mouseUp(event.mouse.x, event.mouse.y); if (obj != NULL) processTurn(NULL, obj); } |