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

**URL:** <https://forums.unrealengine.com/t/mouse-cursor-functions-do-not-work-when-using-controller-enhanced-input/1237879>\
**Category:** Programming & Scripting\
**Tags:** cursor, Input, unreal-engine, question\
**Created:** [July 23, 2023, 8:06pm UTC](https://forums.unrealengine.com/t/mouse-cursor-functions-do-not-work-when-using-controller-enhanced-input/1237879 "2023-07-23T20:06:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![YiffKitsu](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/yiffkitsu/32/987237_2.png) [@YiffKitsu](https://forums.unrealengine.com/u/YiffKitsu)\
**Post date:** [July 23, 2023, 8:06pm UTC](https://forums.unrealengine.com/t/mouse-cursor-functions-do-not-work-when-using-controller-enhanced-input/1237879/1 "2023-07-23T20:06:48Z")

</div>

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

 ![Screenshot 2023-07-23 213212](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/d/0/9d063851b7b27cb12591364c2c793ac5b5c79277.png)

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.

---

<div class="post-metadata">

**Author:** ![YiffKitsu](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/yiffkitsu/32/987237_2.png) [@YiffKitsu](https://forums.unrealengine.com/u/YiffKitsu)\
**Post date:** [July 27, 2023, 10:12pm UTC](https://forums.unrealengine.com/t/mouse-cursor-functions-do-not-work-when-using-controller-enhanced-input/1237879/2 "2023-07-27T22:12:45Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Izzombol](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/izzombol/32/962523_2.png) [@Izzombol](https://forums.unrealengine.com/u/Izzombol)\
**Post date:** [July 1, 2024, 2:34pm UTC](https://forums.unrealengine.com/t/mouse-cursor-functions-do-not-work-when-using-controller-enhanced-input/1237879/3 "2024-07-01T14:34:16Z")

</div>

Hey!

Ever found a workaround for this?
