aboutsummaryrefslogtreecommitdiff
path: root/sky/mouse.cpp
diff options
context:
space:
mode:
authorJoost Peters2003-06-09 18:58:37 +0000
committerJoost Peters2003-06-09 18:58:37 +0000
commit74bacc470f9442edad227cb9163abda6f7ba4f10 (patch)
tree613b45985664e77c24c525d9e60be2d224028aa7 /sky/mouse.cpp
parentd398b818f82c3d8d6e467c6e1ffbf13edc3e8d9c (diff)
downloadscummvm-rg350-74bacc470f9442edad227cb9163abda6f7ba4f10.tar.gz
scummvm-rg350-74bacc470f9442edad227cb9163abda6f7ba4f10.tar.bz2
scummvm-rg350-74bacc470f9442edad227cb9163abda6f7ba4f10.zip
mouse-fixes, note that: buttonPressed() keeping track of a repeated push DOES NOT WORK YET, _bMouseB gets cleared elsewhere, so we obviously need to come up with something else. and we still need a wait_relative equivalent to have a proper fnLookAt() ...hmm...this commit message is starting to look like a todo list. oh, well. :)
svn-id: r8419
Diffstat (limited to 'sky/mouse.cpp')
-rw-r--r--sky/mouse.cpp12
1 files changed, 11 insertions, 1 deletions
diff --git a/sky/mouse.cpp b/sky/mouse.cpp
index 88dc5260e8..7461fca586 100644
--- a/sky/mouse.cpp
+++ b/sky/mouse.cpp
@@ -172,7 +172,7 @@ void SkyMouse::drawNewMouse() {
}
void SkyMouse::waitMouseNotPressed(void) {
- while (_mouseB != 0) ;
+ while (_mouseB) ;
_bMouseB = 0;
}
@@ -273,6 +273,16 @@ void SkyMouse::pointerEngine(void) {
}
}
+void SkyMouse::buttonPressed(uint8 button) {
+ if (_bMouseB == button)
+ _mouseB = 1;
+ else
+ _mouseB = 0;
+
+ _bMouseB = button;
+
+}
+
void SkyMouse::buttonEngine1(void) {
//checks for clicking on special item
//"compare the size of this routine to S1 mouse_button"