Mouse Cursor functions do not work when using Controller (Enhanced Input)

Hello, I’m pretty new to Unreal Engine and Blueprints, so probably it’s just a setting to toggle somewhere somehow, but I cannot get around a problem

I am using the Enhanced Inputs (with Input Mapping Contexts and Input Actions) in Unreal Engine 5.2.1

The project is a Top Down / Twin Stick shooter. The movement with WASD and Left Thumbstick works fine.

Edit: forgot to disclose, I am using a Player Controller with the inputs management inside, and a Character where its game logic will be in

The intention is to make the game inputs “hot swappable” while in game, so if client is using the controller and suddenly switches to keyboard/mouse, the UI adapts and so on.

The goal is to have the mouse cursor on when the mouse is in use (already works just fine), and either hide the cursor when the Right Thumbstick is used or move the cursor to a fixed position (using the “Set Mouse Position” node)

The problem:
When using the controller, neither Set Show Mouse Cursor or Set Mouse Position work.
What I have tried:

  • Mapping the same Input Action with a mouse press and a controller press: when clicking the mouse the show cursor can be set to true and false as expected, but with the controller press it doesn’t change at all
  • Using two different input actions, one for controller and one for mouse: same thing, doesn’t work
  • Changing the mouse position on-click (Set Mouse Position) works, but changing the mouse position when thumbstick is used (Vector 2D) doesn’t work
  • Debugging with both breakpoints and Print Strings, the code does happen, but just does not work

What am I doing wrong? Or is there another way around perhaps? I was thinking to make a “virtual/dynamic cursor” but I don’t really know if that would work.

bump? I think I found a workaround but I was still wondering why I could not change the cursor when using a controller

Hey!

Ever found a workaround for this?