(Action RPG Template) After closing inventory mouse won't capture

After closing the inventory, the mouseX and mouseY inputs don’t rotate the camera like they do when first starting the map. Also the mouse cursor becomes visible despite it being set to invisible in the ShowInventoryUI method on the BP_PlayerController.

The mouse still functions as a touch input though and the cursor goes invisible during click and drag inputs.
I’ve tried setting input mode to game only when the inventory is closed but that didn’t seem to fix it.

Ah, silly me.

The ShowMouseCursor method being called is a BP Function Library method, not the PlayerController one of the same name.

Solve this problem finally ~~~ :partying_face: