Set Show Mouse Cursor requires Mouse Move

SetShowMouseCursor requires a mouse move for the effect to take place.

you are probably using the winapi ShowCursor(bShow). windows tends to not update the mouse status right away. a simple fix would be to add the following code right after ShowCursor():

 mouse.type = INPUT_MOUSE;
 SendInput(1, &mouse, sizeof(INPUT);

usually SendInput() is used to (as the name suggests) send input. by not adding any input information, we only let windows know that it should update its mouse status.

Hey-

Submitting your change as a pull request on GitHub (https://github.com/EpicGames/UnrealEngine/compare?expand=1) would be the best way to have your suggested fix considered for implementation into the engine. Once submitted, it will be reviewed by our development team for compatibility with the engine code.

Cheers

link is not working.

Please make sure you have created a Github account and linked it with your epic games account.
You can find information on how to do this here: GitHub - EpicGames/Signup: Information about signing up for a free Epic Games account, and getting access to UnrealEngine source code.

cool thanks.

Here’s a direct link to that PR: https://github.com/EpicGames/UnrealEngine/pull/4246