# Set Hardware Cursor Doesnt always work

**URL:** <https://forums.unrealengine.com/t/set-hardware-cursor-doesnt-always-work/409182>\
**Category:** Getting Started & Setup\
**Tags:** mouse-cursor, unreal-engine, question\
**Created:** [November 9, 2017, 5:32pm UTC](https://forums.unrealengine.com/t/set-hardware-cursor-doesnt-always-work/409182 "2017-11-09T17:32:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_100f129d](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_100f129d](https://forums.unrealengine.com/u/anonymous_user_100f129d)\
**Post date:** [November 9, 2017, 5:32pm UTC](https://forums.unrealengine.com/t/set-hardware-cursor-doesnt-always-work/409182/1 "2017-11-09T17:32:57Z")

</div>

1.) press and hold the left mouse button, while over a widget.

2.) move the cursor outside of the window and back inside again, while still holding the mouse button down. after few tries, SetHardwareCursor will fail to change the cursor.

3.) you can release the mouse button now, move the cursor around, and even do a few clicks here and there, but SetHardwareCursor still wont be able to change the cursor.

4.) after leaving the window and re-entering again, SetHardwareCursor will finally change the cursor.

ps: yes i know i shouldnt use Event Tick, but i couldnt think of a better way to demonstrate the problem. also the bool return value from SetHardwareCursor still returning true, even though the cursor is “broken”.

![219662-bug.gif](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/8/f/48fd00933d022447e40472eefffcc02b4c37b64e.gif)

![219663-widget-bp.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/f/a/2fa5587047ed52354d2a4a8881dabb2ed28b16d9.jpeg)

 ![219664-level-bp.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/7/1/e71a7b6c67595eb93ac787f1e959709bca0896fd.jpeg)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_943e62f0](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_943e62f0](https://forums.unrealengine.com/u/anonymous_user_943e62f0)\
**Post date:** [November 10, 2017, 3:10pm UTC](https://forums.unrealengine.com/t/set-hardware-cursor-doesnt-always-work/409182/2 "2017-11-10T15:10:17Z")

</div>

Hey I was able to reproduce this. I have logged it into Jira as a bug report and that number is [JIRA UE-52259](https://issues.unrealengine.com/issue/UE-52259). Our Developers will investigate it further so please refer to the link for updates.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_2709d010](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_2709d010](https://forums.unrealengine.com/u/anonymous_user_2709d010)\
**Post date:** [May 12, 2019, 1:29pm UTC](https://forums.unrealengine.com/t/set-hardware-cursor-doesnt-always-work/409182/3 "2019-05-12T13:29:02Z")

</div>

Does anybody know if this is PIE only like the bug report says, although the OP did not state so? Because if this is a general bug that won’t be fixed (and given that this is from 2017 I assume it won’t be fixed anytime soon) I can safe myself some time and just leave standard windows cursors.
