aboutsummaryrefslogtreecommitdiff
path: root/sky
diff options
context:
space:
mode:
authorJoost Peters2003-06-06 14:40:46 +0000
committerJoost Peters2003-06-06 14:40:46 +0000
commit64ffbe6021aa9dadd7a19770d296a42148db071b (patch)
treea81efd6622127fd936d16888d739276fa9af343e /sky
parent1326772037669ea54637f06f06348622de9aa434 (diff)
downloadscummvm-rg350-64ffbe6021aa9dadd7a19770d296a42148db071b.tar.gz
scummvm-rg350-64ffbe6021aa9dadd7a19770d296a42148db071b.tar.bz2
scummvm-rg350-64ffbe6021aa9dadd7a19770d296a42148db071b.zip
add some (mouse) stubs
svn-id: r8354
Diffstat (limited to 'sky')
-rw-r--r--sky/logic.cpp14
1 files changed, 11 insertions, 3 deletions
diff --git a/sky/logic.cpp b/sky/logic.cpp
index 60286e2147..2564b690de 100644
--- a/sky/logic.cpp
+++ b/sky/logic.cpp
@@ -1487,7 +1487,9 @@ bool SkyLogic::fnAddButtons(uint32 a, uint32 b, uint32 c) {
}
bool SkyLogic::fnNoButtons(uint32 a, uint32 b, uint32 c) {
- error("Stub: fnNoButtons");
+ //remove the mouse buttons
+ _scriptVariables[MOUSE_STATUS] &= 0xFFFFFFFB;
+ return true;
}
bool SkyLogic::fnSetStop(uint32 a, uint32 b, uint32 c) {
@@ -1960,11 +1962,17 @@ bool SkyLogic::fnToggleMouse(uint32 a, uint32 b, uint32 c) {
}
bool SkyLogic::fnMouseOn(uint32 a, uint32 b, uint32 c) {
- error("Stub: fnMouseOn");
+ //switch on the mouse highlight
+ Compact *cpt = SkyState::fetchCompact(a);
+ cpt->status |= ST_MOUSE;
+ return true;
}
bool SkyLogic::fnMouseOff(uint32 a, uint32 b, uint32 c) {
- error("Stub: fnMouseOff");
+ //switch on (off??) the mouse highlight
+ Compact *cpt = SkyState::fetchCompact(a);
+ cpt->status &= ~ST_MOUSE;
+ return true;
}
bool SkyLogic::fnFetchX(uint32 id, uint32 b, uint32 c) {