Qt: Hook up mouse wheel to ImGui

This commit is contained in:
Connor McLaughlin
2021-02-26 02:42:20 +10:00
parent 9425f34ceb
commit 52c842e3b3
4 changed files with 47 additions and 9 deletions

View File

@ -177,6 +177,13 @@ bool QtDisplayWidget::event(QEvent* event)
return true;
}
case QEvent::Wheel:
{
const QWheelEvent* wheel_event = static_cast<QWheelEvent*>(event);
emit windowMouseWheelEvent(wheel_event->angleDelta());
return true;
}
case QEvent::Resize:
{
QWidget::event(event);