From 2cd32bf25a213eee2cfa52fae3b3af7d93594c46 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Sun, 31 Mar 2019 13:58:27 -0700 Subject: [PATCH] Move the cursor into the lower right corner on SL --- app/main.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/main.cpp b/app/main.cpp index d4ec9833..9b1ea921 100644 --- a/app/main.cpp +++ b/app/main.cpp @@ -8,6 +8,7 @@ #include #include #include +#include // Don't let SDL hook our main function, since Qt is already // doing the same thing. This needs to be before any headers @@ -363,6 +364,10 @@ int main(int argc, char *argv[]) QFont fon("NotoSans"); app.setFont(fon); } + + // Move the mouse to the bottom right so it's invisible when using + // gamepad-only navigation. + QCursor().setPos(0xFFFF, 0xFFFF); #endif app.setWindowIcon(QIcon(":/res/moonlight.svg"));