# Widget change receive hardware input

**URL:** <https://forums.unrealengine.com/t/widget-change-receive-hardware-input/637551>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine\
**Created:** [August 31, 2022, 2:07am UTC](https://forums.unrealengine.com/t/widget-change-receive-hardware-input/637551 "2022-08-31T02:07:12Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Wall6ly](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Wall6ly](https://forums.unrealengine.com/u/Wall6ly)\
**Post date:** [August 31, 2022, 2:07am UTC](https://forums.unrealengine.com/t/widget-change-receive-hardware-input/637551/1 "2022-08-31T02:07:12Z")

</div>

Hello, I’m looking for some help with a widget. Project is in UE4.27.2 with Blueprints.

I want to give players the option of playing in either VR or desktop. I have a 3d widget in the level.

The issue is, for desktop players, they would interact with the widget with their mouse cursor. This requires the “Receive Hardware Input” on the widget is switched on.

For VR players, they would interact with a widget interaction component on their motion controllers. This requires the “Receive Hardware Input” is switched off.

Normally I’d just detect which device they are using and switch the Receive Hardware Input option on or off. But it doesn’t seem to be accessible as a node in Blueprint.

So my question is: does anyone know either a way to switch this on or off (maybe with a console command?) in Blueprint? Or perhaps another workaround for my PC/VR interaction issue?

[https://imgur.com/a/IRVtl12](https://imgur.com/a/IRVtl12)

---

<div class="post-metadata">

**Author:** ![Wall6ly](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Wall6ly](https://forums.unrealengine.com/u/Wall6ly)\
**Post date:** [August 31, 2022, 12:22pm UTC](https://forums.unrealengine.com/t/widget-change-receive-hardware-input/637551/2 "2022-08-31T12:22:00Z")

</div>

I found a workaround myself, but posting here in case anyone out there has a similar issue.

Simply created a new Widget Interaction component on the character and set the interaction source to mouse. This creates a line trace from the mouse which can interact with widgets that are not set up to receive hardware inputs.

---

<div class="post-metadata">

**Author:** ![yourboypavs](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@yourboypavs](https://forums.unrealengine.com/u/yourboypavs)\
**Post date:** [February 24, 2024, 2:44am UTC](https://forums.unrealengine.com/t/widget-change-receive-hardware-input/637551/3 "2024-02-24T02:44:45Z")

</div>

Thanking you from the future, this is exactly what I needed to get on track.

For some reason, this only worked when I “faked” the click, the same way we do for our other interaction components:

 ![ue5_widget_mouse_input](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/5/3/8535401efc3b57a997f83c7744323ec55c1009b2.png)

---

<div class="post-metadata">

**Author:** ![utopia.Game2](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/utopia.game2/32/763789_2.png) [@utopia.Game2](https://forums.unrealengine.com/u/utopia.Game2)\
**Post date:** [November 13, 2024, 6:32am UTC](https://forums.unrealengine.com/t/widget-change-receive-hardware-input/637551/4 "2024-11-13T06:32:38Z")

</div>

Why the Receive Hardware Input Not Working In Packaged Game ?! 🧐

---

<div class="post-metadata">

**Author:** ![DoomCross](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DoomCross](https://forums.unrealengine.com/u/DoomCross)\
**Post date:** [December 18, 2024, 9:05pm UTC](https://forums.unrealengine.com/t/widget-change-receive-hardware-input/637551/5 "2024-12-18T21:05:46Z")

</div>

Were you able to figure this out? I am facing the exact same issue - works in editor, but does not work in production build.

---

<div class="post-metadata">

**Author:** ![DoomCross](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DoomCross](https://forums.unrealengine.com/u/DoomCross)\
**Post date:** [December 18, 2024, 9:12pm UTC](https://forums.unrealengine.com/t/widget-change-receive-hardware-input/637551/6 "2024-12-18T21:12:02Z")

</div>

Okay, suddenly I found a solution just after I posted.  
So, it turns out, it does not work when the 3d widget starts with an empty widget class (which was my case). If it starts not emty, and you change the widget later, everything is good.
