diff options
| author | bunnei <bunneidev@gmail.com> | 2020-05-03 23:16:19 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-05-03 23:16:19 -0400 |
| commit | fc04108c77be13cc1ba7402225243253cee7cbf2 (patch) | |
| tree | 6c8f7d08a8146f9ca5b023920b82071596946568 /src/yuzu/main.h | |
| parent | 29fce1a1872909f7200a3b727adcc3dfb71013a1 (diff) | |
| parent | e7664b7a4fe1035bc3c9afb51254bfff1f25654a (diff) | |
Merge pull request #3637 from FearlessTobi/port-5094
Port citra-emu/citra#5094: "yuzu: Option to hide mouse on inactivity"
Diffstat (limited to 'src/yuzu/main.h')
| -rw-r--r-- | src/yuzu/main.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/yuzu/main.h b/src/yuzu/main.h index 0b750689d..60b17c54a 100644 --- a/src/yuzu/main.h +++ b/src/yuzu/main.h @@ -216,6 +216,8 @@ private: std::optional<u64> SelectRomFSDumpTarget(const FileSys::ContentProvider&, u64 program_id); void UpdateWindowTitle(const QString& title_name = {}); void UpdateStatusBar(); + void HideMouseCursor(); + void ShowMouseCursor(); Ui::MainWindow ui; @@ -244,6 +246,7 @@ private: QString game_path; bool auto_paused = false; + QTimer mouse_hide_timer; // FS std::shared_ptr<FileSys::VfsFilesystem> vfs; @@ -265,4 +268,6 @@ protected: void dropEvent(QDropEvent* event) override; void dragEnterEvent(QDragEnterEvent* event) override; void dragMoveEvent(QDragMoveEvent* event) override; + void mouseMoveEvent(QMouseEvent* event) override; + void mousePressEvent(QMouseEvent* event) override; }; |
