aboutsummaryrefslogtreecommitdiff
path: root/engines/sherlock/events.h
diff options
context:
space:
mode:
authorPaul Gilbert2015-03-23 20:34:34 -0400
committerPaul Gilbert2015-03-23 20:34:34 -0400
commit73085bf57034adc2dbf5994ce2c6930b416eee7d (patch)
treed3c6c60a7cff231fdb0305173e0457a530bfa13e /engines/sherlock/events.h
parent989d26897436103ff475b9987645b06265076bda (diff)
downloadscummvm-rg350-73085bf57034adc2dbf5994ce2c6930b416eee7d.tar.gz
scummvm-rg350-73085bf57034adc2dbf5994ce2c6930b416eee7d.tar.bz2
scummvm-rg350-73085bf57034adc2dbf5994ce2c6930b416eee7d.zip
SHERLOCK: Beginnings of UserInterface class
Diffstat (limited to 'engines/sherlock/events.h')
-rw-r--r--engines/sherlock/events.h14
1 files changed, 10 insertions, 4 deletions
diff --git a/engines/sherlock/events.h b/engines/sherlock/events.h
index e939b5768f..1c5fbc5be4 100644
--- a/engines/sherlock/events.h
+++ b/engines/sherlock/events.h
@@ -44,12 +44,17 @@ private:
uint32 _priorFrameTime;
Common::Point _mousePos;
ImageFile *_cursorImages;
+ int _mouseButtons;
bool checkForNextFrameCounter();
public:
CursorId _cursorId;
- byte _mouseButtons;
- bool _mouseClicked;
+ bool _pressed;
+ bool _released;
+ bool _rightPressed;
+ bool _rightReleased;
+ bool _oldButtons;
+ bool _oldRightButton;
Common::Stack<Common::KeyState> _pendingKeys;
public:
Events(SherlockEngine *vm);
@@ -75,7 +80,7 @@ public:
uint32 getFrameCounter() const { return _frameCounter; }
- bool isKeyPressed() const { return !_pendingKeys.empty(); }
+ bool kbHit() const { return !_pendingKeys.empty(); }
Common::KeyState getKey() { return _pendingKeys.pop(); }
@@ -85,8 +90,9 @@ public:
bool delay(uint32 time, bool interruptable = false);
- void waitForNextFrame();
+ void setButtonState();
+ bool checkInput();
};
} // End of namespace Sherlock