From 3a842a079c668e9dfc52a6056119d4932e8ef56d Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Sun, 2 Mar 2014 23:09:17 -0500 Subject: MADS: Bulk of implementation of ScreenObjects::check --- engines/mads/events.h | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) (limited to 'engines/mads/events.h') diff --git a/engines/mads/events.h b/engines/mads/events.h index c4fb8786cb..0a6913b38e 100644 --- a/engines/mads/events.h +++ b/engines/mads/events.h @@ -42,10 +42,7 @@ private: uint32 _gameCounter; uint32 _priorFrameTime; Common::Point _mousePos; - int _vCC; - int _vD4; - int _vD8; - int _vD2; + Common::Point _currentPos; /** * Updates the cursor image when the current cursor changes @@ -59,8 +56,15 @@ private: public: SpriteAsset *_cursorSprites; bool _mouseClicked; + bool _mouseReleased; + byte _mouseButtons; bool _keyPressed; uint32 _currentTimer; + int _vCC; + int _vD2; + int _vD4; + int _vD6; + int _vD8; public: /** * Constructor @@ -117,6 +121,11 @@ public: */ Common::Point mousePos() const { return _mousePos; } + /** + * Return the current mouse position + */ + Common::Point currentPos() const { return _currentPos; } + /** * Delay for a given number of frames */ -- cgit v1.2.3