diff options
| author | gal20 <71563441+gal20@users.noreply.github.com> | 2020-12-30 21:41:14 +0200 |
|---|---|---|
| committer | gal20 <71563441+gal20@users.noreply.github.com> | 2020-12-31 21:16:09 +0200 |
| commit | 6e102ea0480d7eb933b5067e5a28291e42b1558f (patch) | |
| tree | 60cb281b7341208ea478818ac089886b8d13b173 /src/yuzu/bootmanager.cpp | |
| parent | e1b8d02351f5c871a397aa14247b1b4093e49994 (diff) | |
yuzu/main: fix mouse not showing on move and port citra-emu/citra#5476
Diffstat (limited to 'src/yuzu/bootmanager.cpp')
| -rw-r--r-- | src/yuzu/bootmanager.cpp | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/yuzu/bootmanager.cpp b/src/yuzu/bootmanager.cpp index e124836b50..85ee2577d1 100644 --- a/src/yuzu/bootmanager.cpp +++ b/src/yuzu/bootmanager.cpp @@ -397,7 +397,7 @@ void GRenderWindow::mousePressEvent(QMouseEvent* event) { this->TouchPressed(x, y); } - QWidget::mousePressEvent(event); + emit MouseActivity(); } void GRenderWindow::mouseMoveEvent(QMouseEvent* event) { @@ -411,7 +411,7 @@ void GRenderWindow::mouseMoveEvent(QMouseEvent* event) { input_subsystem->GetMouse()->MouseMove(x, y); this->TouchMoved(x, y); - QWidget::mouseMoveEvent(event); + emit MouseActivity(); } void GRenderWindow::mouseReleaseEvent(QMouseEvent* event) { @@ -688,3 +688,10 @@ void GRenderWindow::showEvent(QShowEvent* event) { connect(windowHandle(), &QWindow::screenChanged, this, &GRenderWindow::OnFramebufferSizeChanged, Qt::UniqueConnection); } + +bool GRenderWindow::eventFilter(QObject* object, QEvent* event) { + if (event->type() == QEvent::HoverMove) { + emit MouseActivity(); + } + return false; +} |
