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 <noreply@anthropic.com>
This commit is contained in:
+14
-2
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user