Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/button.h')
-rw-r--r--src/ui/button.h12
1 files changed, 4 insertions, 8 deletions
diff --git a/src/ui/button.h b/src/ui/button.h
index 7d264a9..15d5d05 100644
--- a/src/ui/button.h
+++ b/src/ui/button.h
@@ -33,14 +33,10 @@ public:
/// print button description
virtual void print(const size_t indent) const;
- /// called when the mouse enters the widget
- virtual void on_mouseover(const math::Vector2f &cursor);
-
- /// called when the widget receives a key press
- virtual bool on_keypress(const int key, const unsigned int modifier);
-
- /// called when the widget receives a key release
- virtual bool on_keyrelease(const int key, const unsigned int modifier);
+ /**
+ * @brief mouse button press event handler
+ * */
+ virtual bool on_mousepress(const unsigned int button);
protected:
/// draw the button background