Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2016-07-23 22:10:24 +0200
committerStijn Buys <ingar@osirion.org>2016-07-23 22:10:24 +0200
commit5de756948709c153894d6b13b5bbc62e722e4149 (patch)
tree24f92adc944b51616858f52e75d81c2522af930b /src/client/mapwidget.h
parent492a5aabefb1a25d6c497bb1c8e12201c6d36f1d (diff)
Made the map widgets catch mouse release events,
preventing events from trickling through to the HUD.
Diffstat (limited to 'src/client/mapwidget.h')
-rw-r--r--src/client/mapwidget.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/client/mapwidget.h b/src/client/mapwidget.h
index 38485fd..26a6876 100644
--- a/src/client/mapwidget.h
+++ b/src/client/mapwidget.h
@@ -52,6 +52,11 @@ protected:
* */
virtual bool on_mousepress(const unsigned int button);
+ /**
+ * @brief mouse button release event handler
+ * */
+ virtual bool on_mouserelease(const unsigned int button);
+
private:
float mapwidget_zoom;