How to show/hide a cursor when in UI Only input mode?

Hello,

I have a problem - when I bring a UI widget to the screen and set input mode to UI only, APlayerController::bShowMouseCursor seems to not work anymore.

Why I need this: when the main menu is shown I want to switch between a keyboard and gamepad. For instance, a user opens the main menu widget while in Gamepad mode, the cursor should not be shown, but then he touches the mouse, and at that point, controls are switched to the mouse and keyboard. This seems to be a common practice in games.

Well, the problem now is that I don’t seem to be able to show/hide a cursor when input mode is set to UI only.

Do you know any workarounds or a solution?

Thanks!

6 Likes