diff options
Diffstat (limited to 'engines/hugo/mouse.cpp')
-rw-r--r-- | engines/hugo/mouse.cpp | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/engines/hugo/mouse.cpp b/engines/hugo/mouse.cpp index 3464fea869..0bbc74e992 100644 --- a/engines/hugo/mouse.cpp +++ b/engines/hugo/mouse.cpp @@ -55,6 +55,58 @@ MouseHandler::MouseHandler(HugoEngine *vm) : _vm(vm) { _mouseY = kYPix / 2; } +void MouseHandler::resetLeftButton() { + _leftButtonFl = false; +} + +void MouseHandler::resetRightButton() { + _rightButtonFl = false; +} + +void MouseHandler::setLeftButton() { + _leftButtonFl = true; +} + +void MouseHandler::setRightButton() { + _rightButtonFl = true; +} + +void MouseHandler::setJumpExitFl(bool fl) { + _jumpExitFl = fl; +} + +void MouseHandler::setMouseX(int x) { + _mouseX = x; +} + +void MouseHandler::setMouseY(int y) { + _mouseY = y; +} + +void MouseHandler::freeHotspots() { + free(_hotspots); +} + +bool MouseHandler::getJumpExitFl() const { + return _jumpExitFl; +} + +int MouseHandler::getMouseX() const { + return _mouseX; +} + +int MouseHandler::getMouseY() const { + return _mouseY; +} + +int16 MouseHandler::getDirection(const int16 hotspotId) const { + return _hotspots[hotspotId].direction; +} + +int16 MouseHandler::getHotspotActIndex(const int16 hotspotId) const { + return _hotspots[hotspotId].actIndex; +} + /** * Shadow-blit supplied string into dib_a at cx,cy and add to display list */ |