diff options
author | crupest <crupest@outlook.com> | 2021-10-03 22:29:38 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2021-10-03 22:29:38 +0800 |
commit | 4056e710b4c99968afc4db3bbf26e2d3fef5db07 (patch) | |
tree | 8de0ebee0f8e9e4ba8b62fe6e36fa07e33c44155 /src/osx/gui/Window.mm | |
parent | 9e4db17fa43dbb8bed25feb4769f672893e9463c (diff) | |
download | cru-4056e710b4c99968afc4db3bbf26e2d3fef5db07.tar.gz cru-4056e710b4c99968afc4db3bbf26e2d3fef5db07.tar.bz2 cru-4056e710b4c99968afc4db3bbf26e2d3fef5db07.zip |
...
Diffstat (limited to 'src/osx/gui/Window.mm')
-rw-r--r-- | src/osx/gui/Window.mm | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/osx/gui/Window.mm b/src/osx/gui/Window.mm index 441c2f73..4e3b19ed 100644 --- a/src/osx/gui/Window.mm +++ b/src/osx/gui/Window.mm @@ -22,6 +22,8 @@ namespace cru::platform::gui::osx { namespace details { + + class OsxWindowPrivate { friend OsxWindow; @@ -214,6 +216,16 @@ void OsxWindow::CreateWindow() { Point(event.locationInWindow.x, event.locationInWindow.y), key_modifer}); break; + case NSEventTypeScrollWheel: + this->mouse_wheel_event_.Raise(NativeMouseWheelEventArgs{ + static_cast<float>(event.scrollingDeltaY), + Point(event.locationInWindow.x, event.locationInWindow.y), + key_modifer}); + break; + case NSEventTypeKeyDown: + + case NSEventTypeKeyUp: + default: break; } |