aboutsummaryrefslogtreecommitdiff
path: root/engines/lure/events.h
diff options
context:
space:
mode:
authorPaul Gilbert2007-06-22 12:36:04 +0000
committerPaul Gilbert2007-06-22 12:36:04 +0000
commit8b3821e9ff5b60ee75d180514ca8b067bd5a0105 (patch)
tree2e07798aec37da5ec665ac09e08ee6eca231e8f7 /engines/lure/events.h
parent707e62e669b227e0baf7a8c976283b32cef20b9d (diff)
downloadscummvm-rg350-8b3821e9ff5b60ee75d180514ca8b067bd5a0105.tar.gz
scummvm-rg350-8b3821e9ff5b60ee75d180514ca8b067bd5a0105.tar.bz2
scummvm-rg350-8b3821e9ff5b60ee75d180514ca8b067bd5a0105.zip
Lots of bugfixes - game is now completable
svn-id: r27606
Diffstat (limited to 'engines/lure/events.h')
-rw-r--r--engines/lure/events.h14
1 files changed, 8 insertions, 6 deletions
diff --git a/engines/lure/events.h b/engines/lure/events.h
index fcdfc343d7..1205ebe158 100644
--- a/engines/lure/events.h
+++ b/engines/lure/events.h
@@ -36,7 +36,7 @@ namespace Lure {
class Mouse {
private:
- uint8 _cursorNum;
+ CursorType _cursorNum;
int16 _x, _y;
bool _lButton, _rButton;
public:
@@ -47,17 +47,17 @@ public:
void cursorOn();
void cursorOff();
- void setCursorNum(uint8 cursorNum);
- void setCursorNum(uint8 cursorNum, int hotspotX, int hotspotY);
- uint8 getCursorNum() { return _cursorNum; }
+ void setCursorNum(CursorType cursorNum);
+ void setCursorNum(CursorType cursorNum, int hotspotX, int hotspotY);
+ CursorType getCursorNum() { return _cursorNum; }
void setPosition(int x, int y);
int16 x() { return _x; }
int16 y() { return _y; }
bool lButton() { return _lButton; }
bool rButton() { return _rButton; }
void waitForRelease();
- void pushCursorNum(uint8 cursorNum);
- void pushCursorNum(uint8 cursorNum, int hotspotX, int hotspotY);
+ void pushCursorNum(CursorType cursorNum);
+ void pushCursorNum(CursorType cursorNum, int hotspotX, int hotspotY);
void popCursor();
};
@@ -72,6 +72,8 @@ public:
bool pollEvent();
void waitForPress();
+ bool interruptableDelay(uint32 milliseconds);
+
Common::Event event() { return _event; }
Common::EventType type() { return _event.type; }
};