aboutsummaryrefslogtreecommitdiff
path: root/engines/zvision/push_toggle_control.h
diff options
context:
space:
mode:
authorMarisa-Chan2014-02-07 23:03:02 +0700
committerMarisa-Chan2014-02-07 23:03:02 +0700
commitcb2503aa9dd5d76a12aaf0522ddea810907a97a5 (patch)
tree437cce8fe57dbce63e8a09f2049386b4d7c4f089 /engines/zvision/push_toggle_control.h
parent00337400010efc1012e95ec0c14a77423bb3a0ee (diff)
downloadscummvm-rg350-cb2503aa9dd5d76a12aaf0522ddea810907a97a5.tar.gz
scummvm-rg350-cb2503aa9dd5d76a12aaf0522ddea810907a97a5.tar.bz2
scummvm-rg350-cb2503aa9dd5d76a12aaf0522ddea810907a97a5.zip
ZVISION: Refactor of pushtoggle code, now full functional implementation.
Diffstat (limited to 'engines/zvision/push_toggle_control.h')
-rw-r--r--engines/zvision/push_toggle_control.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/engines/zvision/push_toggle_control.h b/engines/zvision/push_toggle_control.h
index 1de279aa08..17ff850e32 100644
--- a/engines/zvision/push_toggle_control.h
+++ b/engines/zvision/push_toggle_control.h
@@ -26,6 +26,7 @@
#include "zvision/control.h"
#include "common/rect.h"
+#include "common/events.h"
namespace ZVision {
@@ -36,6 +37,13 @@ public:
~PushToggleControl();
/**
+ * Called when LeftMouse is pushed. Default is NOP.
+ *
+ * @param screenSpacePos The position of the mouse in screen space
+ * @param backgroundImageSpacePos The position of the mouse in background image space
+ */
+ bool onMouseDown(const Common::Point &screenSpacePos, const Common::Point &backgroundImageSpacePos);
+ /**
* Called when LeftMouse is lifted. Calls ScriptManager::setStateValue(_key, 1);
*
* @param screenSpacePos The position of the mouse in screen space
@@ -60,6 +68,10 @@ private:
Common::Rect _hotspot;
/** The cursor to use when hovering over _hotspot */
Common::String _hoverCursor;
+ /** Button maximal values count */
+ uint _countTo;
+
+ Common::EventType _event;
};
} // End of namespace ZVision