diff options
author | James Brown | 2002-12-29 15:06:44 +0000 |
---|---|---|
committer | James Brown | 2002-12-29 15:06:44 +0000 |
commit | 056feec44ca7d0b82d772c73f9769256325a8d15 (patch) | |
tree | a40f46e3cc19cf690fbc156d90247fd4ef490832 /scumm/scummvm.cpp | |
parent | 4726dba6131adcc672f8c59fa77d3dc90a537ded (diff) | |
download | scummvm-rg350-056feec44ca7d0b82d772c73f9769256325a8d15.tar.gz scummvm-rg350-056feec44ca7d0b82d772c73f9769256325a8d15.tar.bz2 scummvm-rg350-056feec44ca7d0b82d772c73f9769256325a8d15.zip |
override var was wrong, update mouse click code
svn-id: r6250
Diffstat (limited to 'scumm/scummvm.cpp')
-rw-r--r-- | scumm/scummvm.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/scumm/scummvm.cpp b/scumm/scummvm.cpp index 42239973f4..5f9acef0b8 100644 --- a/scumm/scummvm.cpp +++ b/scumm/scummvm.cpp @@ -1213,7 +1213,15 @@ int Scumm::getKeyInput(int a) _mouseButStat = MBS_RIGHT_CLICK; } - if (_features & GF_AFTER_V7) { + if (_features & GF_AFTER_V8) { + _vars[VAR_MOUSE_BUTTONS] = 0; + if (_leftBtnPressed & msClicked) + _vars[VAR_MOUSE_BUTTONS] =+ 1; + + if (_rightBtnPressed & msClicked) + _vars[VAR_MOUSE_BUTTONS] =+ 2; + + } else if (_features & GF_AFTER_V7) { // _vars[VAR_LEFTBTN_DOWN] = (_leftBtnPressed&msClicked) != 0; _vars[VAR_LEFTBTN_HOLD] = (_leftBtnPressed & msDown) != 0; // _vars[VAR_RIGHTBTN_DOWN] = (_rightBtnPressed&msClicked) != 0; |