summaryrefslogtreecommitdiff
path: root/src/interface/Button.h
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2012-08-14 11:15:28 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2012-08-14 11:15:28 (GMT)
commitfe59ec9659a58bb91fd1d6c7babb26e5584f7cc3 (patch)
treec941e47626f17445fec43278895c141626efc994 /src/interface/Button.h
parentb05a847e967f5223b287e85f06b2be382b89fe19 (diff)
downloadpowder-fe59ec9659a58bb91fd1d6c7babb26e5584f7cc3.zip
powder-fe59ec9659a58bb91fd1d6c7babb26e5584f7cc3.tar.gz
Only call button actions if the mouse is released inside the button. Fixes #96
Diffstat (limited to 'src/interface/Button.h')
-rw-r--r--src/interface/Button.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/interface/Button.h b/src/interface/Button.h
index 2358d49..6b7fb96 100644
--- a/src/interface/Button.h
+++ b/src/interface/Button.h
@@ -34,7 +34,7 @@ public:
bool Enabled;
virtual void OnMouseClick(int x, int y, unsigned int button);
- virtual void OnMouseUp(int x, int y, unsigned int button);
+ virtual void OnMouseUnclick(int x, int y, unsigned int button);
//virtual void OnMouseUp(int x, int y, unsigned int button);
virtual void OnMouseEnter(int x, int y);