diff options
author | Stijn Buys <ingar@osirion.org> | 2015-01-06 18:51:37 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2015-01-06 18:51:37 +0000 |
commit | 72ee43e9470c6fdbc6ed7ff92b85dfa5062c5762 (patch) | |
tree | 6474fa59066d5212dcd40e3d76652dce35565280 /src/ui/scrollpane.h | |
parent | 57d958d40af061e83aa99ca12e375e5345836ecd (diff) |
Added separate event handlers for mouse button clicks and mouse wheel movement.
Diffstat (limited to 'src/ui/scrollpane.h')
-rw-r--r-- | src/ui/scrollpane.h | 7 |
1 files changed, 5 insertions, 2 deletions
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; |