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 | 5dfb8743cb8c98642177a7788fd796e48a6867bf (patch) | |
| tree | 60cb281b7341208ea478818ac089886b8d13b173 /src/yuzu/bootmanager.cpp | |
| parent | aa87278bf04f70e557020556cce50539fcf0ee81 (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 e124836b5..85ee2577d 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; +} |
