From 68fa5b32a16d9c74dbd4c99854f00c84b62e2921 Mon Sep 17 00:00:00 2001 From: Tom Lally Date: Fri, 2 Sep 2022 14:16:35 +0100 Subject: [PATCH] Linux cursor show and hide. (#149) --- src/gui/MainWindow.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/gui/MainWindow.cpp b/src/gui/MainWindow.cpp index d936434f..a9ae6fe1 100644 --- a/src/gui/MainWindow.cpp +++ b/src/gui/MainWindow.cpp @@ -1176,7 +1176,14 @@ void MainWindow::ShowCursor(bool state) } while (counter >= 0); } #else - cemuLog_log(LogType::Force, "MainWindow::ShowCursor - todo"); + if (state) + { + wxSetCursor(wxNullCursor); // restore system default cursor + } + else + { + wxSetCursor(wxCursor(wxCURSOR_BLANK)); + } #endif }