diff options
| author | Joost Peters | 2003-06-06 14:40:46 +0000 |
|---|---|---|
| committer | Joost Peters | 2003-06-06 14:40:46 +0000 |
| commit | 64ffbe6021aa9dadd7a19770d296a42148db071b (patch) | |
| tree | a81efd6622127fd936d16888d739276fa9af343e | |
| parent | 1326772037669ea54637f06f06348622de9aa434 (diff) | |
| download | scummvm-rg350-64ffbe6021aa9dadd7a19770d296a42148db071b.tar.gz scummvm-rg350-64ffbe6021aa9dadd7a19770d296a42148db071b.tar.bz2 scummvm-rg350-64ffbe6021aa9dadd7a19770d296a42148db071b.zip | |
add some (mouse) stubs
svn-id: r8354
| -rw-r--r-- | sky/logic.cpp | 14 |
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) { |
