Skip to content

Commit

Permalink
ZVISION: Implement menus.
Browse files Browse the repository at this point in the history
  • Loading branch information
Marisa-Chan committed Jan 12, 2014
1 parent 52bcd62 commit aef9c68
Show file tree
Hide file tree
Showing 6 changed files with 884 additions and 2 deletions.
6 changes: 6 additions & 0 deletions engines/zvision/events.cpp
Expand Up @@ -29,6 +29,7 @@
#include "zvision/render_manager.h"
#include "zvision/script_manager.h"
#include "zvision/rlf_animation.h"
#include "zvision/menu.h"

#include "common/events.h"
#include "common/system.h"
Expand Down Expand Up @@ -98,16 +99,21 @@ void ZVision::processEvents() {
}

void ZVision::onMouseDown(const Common::Point &pos) {
_menu->onMouseDown(pos);

Common::Point imageCoord(_renderManager->screenSpaceToImageSpace(pos));
_scriptManager->onMouseDown(pos, imageCoord);
}

void ZVision::onMouseUp(const Common::Point &pos) {
_menu->onMouseUp(pos);

Common::Point imageCoord(_renderManager->screenSpaceToImageSpace(pos));
_scriptManager->onMouseUp(pos, imageCoord);
}

void ZVision::onMouseMove(const Common::Point &pos) {
_menu->onMouseMove(pos);
Common::Point imageCoord(_renderManager->screenSpaceToImageSpace(pos));

bool cursorWasChanged = false;
Expand Down

0 comments on commit aef9c68

Please sign in to comment.