diff --git a/Source/Core/DolphinQt/RenderWidget.cpp b/Source/Core/DolphinQt/RenderWidget.cpp index dfa07187d2..15a3c4b99c 100644 --- a/Source/Core/DolphinQt/RenderWidget.cpp +++ b/Source/Core/DolphinQt/RenderWidget.cpp @@ -543,9 +543,13 @@ void RenderWidget::PassEventToImGui(const QEvent* event) if (Config::Get(Config::PRIMEHACK_ENABLE)) { +#if (QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)) int x = static_cast(event)->position().x(); int y = static_cast(event)->position().y(); - +#else + int x = static_cast(event)->x(); + int y = static_cast(event)->y(); +#endif prime::g_mouse_input->mousePressEvent(x, y); } }