aboutsummaryrefslogtreecommitdiff
path: root/src/ui/control.cpp
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2018-11-27 17:53:21 +0800
committercrupest <crupest@outlook.com>2018-11-27 17:53:21 +0800
commit7ccb08ac09a83e81a822712b712dc0473c9b23cf (patch)
treea5757aca9903a5bcddf6b480d57030fd27b2ba1f /src/ui/control.cpp
parent7e00386fc0895f8b08cd64ef737cb6c618955635 (diff)
downloadcru-7ccb08ac09a83e81a822712b712dc0473c9b23cf.tar.gz
cru-7ccb08ac09a83e81a822712b712dc0473c9b23cf.tar.bz2
cru-7ccb08ac09a83e81a822712b712dc0473c9b23cf.zip
Add mouse wheel support.
Diffstat (limited to 'src/ui/control.cpp')
-rw-r--r--src/ui/control.cpp17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/ui/control.cpp b/src/ui/control.cpp
index 32909c75..2a81427a 100644
--- a/src/ui/control.cpp
+++ b/src/ui/control.cpp
@@ -709,6 +709,16 @@ namespace cru::ui
}
+ void Control::OnMouseWheel(events::MouseWheelEventArgs& args)
+ {
+
+ }
+
+ void Control::OnMouseWheelCore(events::MouseWheelEventArgs& args)
+ {
+
+ }
+
void Control::RaiseMouseEnterEvent(MouseEventArgs& args)
{
OnMouseEnterCore(args);
@@ -751,6 +761,13 @@ namespace cru::ui
mouse_click_event.Raise(args);
}
+ void Control::RaiseMouseWheelEvent(MouseWheelEventArgs& args)
+ {
+ OnMouseWheelCore(args);
+ OnMouseWheel(args);
+ mouse_wheel_event.Raise(args);
+ }
+
void Control::OnMouseClickBegin(MouseButton button)
{