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/ui.h | |
parent | 57d958d40af061e83aa99ca12e375e5345836ecd (diff) |
Added separate event handlers for mouse button clicks and mouse wheel movement.
Diffstat (limited to 'src/ui/ui.h')
-rw-r--r-- | src/ui/ui.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/ui/ui.h b/src/ui/ui.h index 77b04f5..5c44643 100644 --- a/src/ui/ui.h +++ b/src/ui/ui.h @@ -48,8 +48,14 @@ public: /// receive global mouse movement void input_mouse(const float x, const float y); + + /// receive global mouse button events + bool input_mouse_button(const bool pressed, unsigned int button); + + /// receive global mouse wheel events + bool input_mouse_wheel(const math::Vector2f & direction); - /// receive global key input + /// receive global keyboard events bool input_key(const bool pressed, const int key, const unsigned int modifier); /// run a user interface frame |