[Scummvm-cvs-logs] scummvm master -> ec0f420299eec4aa07a5ca7ae85451273bd04ee1

Kirben kirben at optusnet.com.au
Tue Mar 4 01:20:55 CET 2014


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
ec0f420299 AGOS: Add mouse wheel support for The Feeble Files.


Commit: ec0f420299eec4aa07a5ca7ae85451273bd04ee1
    https://github.com/scummvm/scummvm/commit/ec0f420299eec4aa07a5ca7ae85451273bd04ee1
Author: Kirben (kirben at optusnet.com.au)
Date: 2014-03-03T16:20:01-08:00

Commit Message:
AGOS: Add mouse wheel support for The Feeble Files.

Changed paths:
    engines/agos/input.cpp



diff --git a/engines/agos/input.cpp b/engines/agos/input.cpp
index b8e1767..0e4f4b5 100644
--- a/engines/agos/input.cpp
+++ b/engines/agos/input.cpp
@@ -418,11 +418,33 @@ void AGOSEngine::hitarea_stuff_helper_2() {
 
 #ifdef ENABLE_AGOS2
 void AGOSEngine_Feeble::handleMouseWheelUp() {
-	// TODO
+	if (!(getBitFlag(99)))
+		return;
+
+	if (_mouse.x >= 128 && _mouse.x <= 515 && _mouse.y >= 102 && _mouse.y <= 206) {
+		oracleTextDown();
+	} else if (_mouse.x >= 172 && _mouse.x <= 469 && _mouse.y >= 287 && _mouse.y <= 382) {
+		HitArea *ha = findBox(0x7FFB);
+		if (ha != NULL && (ha->flags & kBFBoxInUse)) {
+			if (!isSpriteLoaded(21, 9))
+				inventoryUp(ha->window);
+		}
+	}
 }
 
 void AGOSEngine_Feeble::handleMouseWheelDown() {
-	// TODO
+	if (!(getBitFlag(99)))
+		return;
+
+	if (_mouse.x >= 128 && _mouse.x <= 515 && _mouse.y >= 102 && _mouse.y <= 206) {
+		oracleTextUp();
+	} else if (_mouse.x >= 172 && _mouse.x <= 469 && _mouse.y >= 287 && _mouse.y <= 382) {
+		HitArea *ha = findBox(0x7FFC);
+		if (ha != NULL && (ha->flags & kBFBoxInUse)) {
+			if (!isSpriteLoaded(23, 9))
+					inventoryDown(ha->window);
+		}
+	}
 }
 #endif
 






More information about the Scummvm-git-logs mailing list