mirror of
https://github.com/OpenMW/openmw.git
synced 2026-10-12 10:39:58 +00:00
20 lines
431 B
C++
20 lines
431 B
C++
#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();
|
|
}
|
|
}
|
|
}
|