Cant hide Mouse Cursor again

This worked!!! Thank you for this work around!!!

A bit more detailed info regarding this can be found here:

1 Like

hey Everynone. Thanks! That’s the best clue I saw in all the internet. In addition to that, I set the basic Canvas Widget as Visible in order to properly hide the Cursor when it is set to Cursor: None.

I found that with a custom widget cursor I could not get the mouse to hide after detecting game pad input unless I moved the mouse. So when I set the mouse cursor to hidden I adjust the mouse position and then the mouse picks up the hidden attribute.

If someone finds this. I had to do this:

IConsoleVariable* EnableGamepadPlatformCursor = IConsoleManager::Get().FindConsoleVariable(TEXT("CommonInput.EnableGamepadPlatformCursor"));
	if (EnableGamepadPlatformCursor != nullptr)
		EnableGamepadPlatformCursor->Set(true);

This will set the EnableGamepadPlatformCursor CVar to true. This changes the internal handling of cursor widget. It does not make sense and maybe is a bug, but it works for me.
Then we use SetUseSoftwareCursorWidgets to hide the cursor.