aboutsummaryrefslogtreecommitdiff
path: root/sword1/mouse.h
diff options
context:
space:
mode:
authorRobert Göffringmann2003-12-17 01:47:47 +0000
committerRobert Göffringmann2003-12-17 01:47:47 +0000
commit34d1751fe402936455fc8b57b28cb6c3eda11285 (patch)
tree4915c2d545063455d34c0d91c3cc341e45b17fae /sword1/mouse.h
parentd81746ada8e7013759eafd7154dd81d488910d22 (diff)
downloadscummvm-rg350-34d1751fe402936455fc8b57b28cb6c3eda11285.tar.gz
scummvm-rg350-34d1751fe402936455fc8b57b28cb6c3eda11285.tar.bz2
scummvm-rg350-34d1751fe402936455fc8b57b28cb6c3eda11285.zip
fixed resMan bug about closing of sections and started adding menu support
svn-id: r11695
Diffstat (limited to 'sword1/mouse.h')
-rw-r--r--sword1/mouse.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/sword1/mouse.h b/sword1/mouse.h
index a37b9ef0db..c2d872fd3e 100644
--- a/sword1/mouse.h
+++ b/sword1/mouse.h
@@ -33,6 +33,8 @@
#define BS1R_BUTTON_DOWN 8
#define BS1R_BUTTON_UP 16
#define MOUSE_BOTH_BUTTONS (BS1L_BUTTON_DOWN | BS1R_BUTTON_DOWN)
+#define MOUSE_DOWN_MASK (BS1L_BUTTON_DOWN | BS1R_BUTTON_DOWN)
+#define MOUSE_UP_MASK (BS1L_BUTTON_UP | BS1R_BUTTON_UP)
struct MouseObj {
int id;
@@ -79,8 +81,8 @@ public:
void fnNormalMouse(void);
void fnLockMouse(void);
void fnUnlockMouse(void);
+ void setMenuStatus(uint8 status);
private:
- void fixTransparency(uint8 *data, uint32 size);
MousePtr *_pointers[17];
uint32 _currentPtrId, _rate, _rateCnt, _frame;
OSystem *_system;
@@ -94,6 +96,9 @@ private:
uint16 _numObjs;
uint16 _lastState, _state;
uint32 _getOff;
+ uint8 _menuStatus;
+ uint32 _specialPtrId; // for special mouse cursors which aren't in the _pointers[] array.
+ MousePtr *_specialPtr;
};
#endif //BSMOUSE_H