mirror of
https://github.com/libretro/scummvm.git
synced 2025-03-06 02:10:28 +00:00
WAGE: Rename mouse event processor to add clarity
This commit is contained in:
parent
52c317b842
commit
63ef49ec8a
@ -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;
|
||||
}
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user