diff options
author | Travis Howell | 2004-07-03 11:37:26 +0000 |
---|---|---|
committer | Travis Howell | 2004-07-03 11:37:26 +0000 |
commit | 40eea5d38677c65cb931973e8a6176f149c6e5b1 (patch) | |
tree | 42f852622812cbe53f156596152e425c89987aa2 | |
parent | da05ebfa3d6c4b64f5d13f498ca24faef3d327a3 (diff) | |
download | scummvm-rg350-40eea5d38677c65cb931973e8a6176f149c6e5b1.tar.gz scummvm-rg350-40eea5d38677c65cb931973e8a6176f149c6e5b1.tar.bz2 scummvm-rg350-40eea5d38677c65cb931973e8a6176f149c6e5b1.zip |
Keep mouse mutton VARS in sync.
svn-id: r14158
-rw-r--r-- | scumm/scumm.cpp | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/scumm/scumm.cpp b/scumm/scumm.cpp index d41061155d..a765a1d8f7 100644 --- a/scumm/scumm.cpp +++ b/scumm/scumm.cpp @@ -1941,9 +1941,14 @@ void ScummEngine::processKbd(bool smushMode) { VAR(VAR_RIGHTBTN_HOLD) = 1; VAR(VAR_MOUSE_HOLD) += 2; } - } else if (_version == 7) { - VAR(VAR_LEFTBTN_HOLD) = (_leftBtnPressed & msDown) != 0; - VAR(VAR_RIGHTBTN_HOLD) = (_rightBtnPressed & msDown) != 0; + } else if (_version >= 6 && !(_features & GF_HUMONGOUS)) { + VAR(VAR_LEFTBTN_DOWN) = (_leftBtnPressed & msClicked) != 0; + VAR(VAR_RIGHTBTN_DOWN) = (_rightBtnPressed & msClicked) != 0; + + if (_version == 7) { + VAR(VAR_LEFTBTN_HOLD) = (_leftBtnPressed & msDown) != 0; + VAR(VAR_RIGHTBTN_HOLD) = (_rightBtnPressed & msDown) != 0; + } } _leftBtnPressed &= ~msClicked; |