Mouse cursor will not re-hide

I have been trying to get my game to hide my mouse cursor when switching to a controller. It will do so just fine… once. After that if I move the mouse again then it will show the mouse cursor regardless of me using controller inputs afterwards. If this happens on my pause menu in-game then the mouse cursor will stay forever until I use the mouse or keyboard to perform an action in-game (looking around, jumping, etc).

This is the code that I am running for this. I have put every redundancy I know of to hide the cursor but it just will not go away after it comes back up. I have run this with prints so I know it is running when I change input between MKB and controller.

Don’t you also need? :thinking:

It is there at the beginning. The function has a boolean input that feeds into it.

:person_facepalming: Sorry, long day..

Not near a machine rn, but maybe the order matters ( you might need to hide after switch to game mode, can’t recall ).

After about a full night and day of messing around and testing, I eventually decided to just always have the cursor disabled and created a fake cursor through a widget that I could toggle on and off.

However I believe I might have found the problem in doing so.

I found that even with the cursor completely disabled, the cursor would still appear at certain points when navigating through the menus. As a last ditch effort I went through every one of my menu widgets and went to Behavior → Advanced → Cursor, enabled it, and set it to None.

The issue would not happen as often after I did that for the parent component of each menu and so I went through and set it for every single component in each menu. Now it seems the cursor is finally gone and won’t appear anymore.

I haven’t gone back and tested it to see if the hide / show functionality is working for the actual cursor since I’ve already built everything around the fake cursor now and I’ve already spent ~10 hours working on the issue today so I don’t want to mess around with it anymore.