Check the ShowMouseCursor preference on Windows
Respect the user's setting in Preferences.ini. Hides the cursor if ShowMouseCursor is set to 0, shows the cursor if ShowMouseCursor is set to 1.
This commit is contained in:
@@ -13,6 +13,7 @@
|
||||
#include "archutils/Win32/GetFileInformation.h"
|
||||
#include "CommandLineActions.h"
|
||||
#include "DirectXHelpers.h"
|
||||
#include "PrefsManager.h"
|
||||
|
||||
#include <optional>
|
||||
#include <set>
|
||||
@@ -126,8 +127,12 @@ static LRESULT CALLBACK GraphicsWindow_WndProc( HWND hWnd, UINT msg, WPARAM wPar
|
||||
case WM_SETCURSOR:
|
||||
if( !g_CurrentParams.windowed )
|
||||
{
|
||||
//Don't hide the cursor when full screened since we have ShowMouseCursor as an option.
|
||||
//SetCursor(nullptr);
|
||||
// We check if the preference is false because we don't want
|
||||
// to show the cursor if the user has set it to false.
|
||||
if (!PREFSMAN->m_bShowMouseCursor.Get())
|
||||
{
|
||||
SetCursor(nullptr);
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user