Something went wrong. Try again.
OpenMW is an open implementation of the Morrowind engine
Something went wrong. Try again.
431 B · 19 lines
C++
at master
1234567891011121314151617181920#include "input.hpp"
#include "widget.hpp"
namespace LuaUi{ void dispatchMouseWheel(MyGUI::Widget* widget, float left, float top, float x, float y) { while (widget) { if (auto* ext = dynamic_cast<WidgetExtension*>(widget)) { ext->mouseWheel(widget, left, top, x, y); break; } widget = widget->getParent(); } }}