From c1990d0ffa2d9b3ec444fd244df0c94cc7807f69 Mon Sep 17 00:00:00 2001 From: Cyd Date: Sun, 12 Jul 2026 14:26:14 -0500 Subject: [PATCH] Hide the mouse cursor only in fullscreen The arcade startup hid the cursor unconditionally in release builds - correct for a pod, but desktop windowed play needs the mouse for the on-screen cockpit buttons and the cursor vanished over every display window. Hide (and restore) it only when running fullscreen. Co-Authored-By: Claude Fable 5 --- RP_L4/RPL4.CPP | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/RP_L4/RPL4.CPP b/RP_L4/RPL4.CPP index bbbbc3c..16e522b 100644 --- a/RP_L4/RPL4.CPP +++ b/RP_L4/RPL4.CPP @@ -182,7 +182,13 @@ int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine ShowWindow(hWnd, nShowCmd); #if !_DEBUG - ShowCursor(FALSE); + // Arcade pods have no mouse - but desktop/windowed play needs the + // cursor for the on-screen cockpit buttons, so hide it only when + // running fullscreen. + if (L4Application::GetFullscreen()) + { + ShowCursor(FALSE); + } #endif // @@ -277,7 +283,13 @@ int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine delete app_manager; } - ShowCursor(TRUE); +#if !_DEBUG + // symmetric with the fullscreen-only hide at startup + if (L4Application::GetFullscreen()) + { + ShowCursor(TRUE); + } +#endif Stop_Registering(); return Exit_Code;