From 72ee43e9470c6fdbc6ed7ff92b85dfa5062c5762 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Tue, 6 Jan 2015 18:51:37 +0000 Subject: Added separate event handlers for mouse button clicks and mouse wheel movement. --- src/ui/scrollpane.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/ui/scrollpane.h') diff --git a/src/ui/scrollpane.h b/src/ui/scrollpane.h index 8fe8395..eac2b17 100644 --- a/src/ui/scrollpane.h +++ b/src/ui/scrollpane.h @@ -58,8 +58,11 @@ protected: /// draw the scroll pane virtual void draw(); - /// key event handler provides mouse scrolling - virtual bool on_keypress(const int key, const unsigned int modifier); + + /** + * @brief mousehweel event handler + * */ + virtual bool on_mousewheel(const math::Vector2f & direction); private: ui::Text &scrollpane_text; -- cgit v1.2.3