From cb513de999a8602cadfcba7f87f9e9a1c87caf1e Mon Sep 17 00:00:00 2001 From: Torbjörn Andersson Date: Tue, 4 Apr 2006 08:50:35 +0000 Subject: Added stub for FF right-clicking. svn-id: r21588 --- engines/simon/simon.cpp | 7 +++++++ engines/simon/simon.h | 2 ++ engines/simon/verb.cpp | 7 +++++++ 3 files changed, 16 insertions(+) (limited to 'engines') diff --git a/engines/simon/simon.cpp b/engines/simon/simon.cpp index 7a00af0fbd..063c854626 100644 --- a/engines/simon/simon.cpp +++ b/engines/simon/simon.cpp @@ -312,6 +312,8 @@ SimonEngine::SimonEngine(OSystem *syst) _mouseXOld = 0; _mouseYOld = 0; + _noRightClick = false; + _dummyItem1 = new Item(); _dummyItem2 = new Item(); _dummyItem3 = new Item(); @@ -1677,6 +1679,11 @@ void SimonEngine::handle_mouse_moved() { } } } + + if (_rightClick) { + _rightClick = false; + setVerb_Feeble(); + } } if (getGameType() == GType_SIMON2) { diff --git a/engines/simon/simon.h b/engines/simon/simon.h index ca7620fa13..55f8a91ce1 100644 --- a/engines/simon/simon.h +++ b/engines/simon/simon.h @@ -322,6 +322,7 @@ protected: bool _unkPalFlag; bool _exitCutscene; bool _rightClick; + bool _noRightClick; byte _paletteFlag; uint _soundFileId; @@ -553,6 +554,7 @@ protected: HitArea *findEmptyHitArea(); void resetVerbs(); void setVerb(HitArea * ha); + void setVerb_Feeble(); void hitarea_leave(HitArea * ha); void leaveHitAreaById(uint hitarea_id); diff --git a/engines/simon/verb.cpp b/engines/simon/verb.cpp index e6cc9924d8..ba0680424d 100644 --- a/engines/simon/verb.cpp +++ b/engines/simon/verb.cpp @@ -442,6 +442,13 @@ void SimonEngine::setVerb(HitArea *ha) { _currentVerbBox = ha; } +void SimonEngine::setVerb_Feeble() { + if (_noRightClick) + return; + + warning("STUB: setVerb_Feeble"); +} + void SimonEngine::hitarea_leave(HitArea *ha) { if (!(getGameType() == GType_SIMON2)) { video_toggle_colors(ha, 0xdf, 0xd5, 0xda, 5); -- cgit v1.2.3