# Virtual joystick captures touch input

**URL:** <https://forums.unrealengine.com/t/virtual-joystick-captures-touch-input/350614>\
**Category:** UI\
**Tags:** ignore, Input, virtual-joystick, unreal-engine, touch, question, UMG\
**Created:** [March 15, 2016, 3:41pm UTC](https://forums.unrealengine.com/t/virtual-joystick-captures-touch-input/350614 "2016-03-15T15:41:58Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Skylonxe](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Skylonxe](https://forums.unrealengine.com/u/Skylonxe)\
**Post date:** [March 15, 2016, 3:41pm UTC](https://forums.unrealengine.com/t/virtual-joystick-captures-touch-input/350614/1 "2016-03-15T15:41:58Z")

</div>

Hello guys,

my UMG buttons do not responed when I have virtual joystick visible, I checked source and it looks like virtual joystick always consider every input as Handled. Is there a way how to make UMG and Joystick co-exist without editing engine source ?

---

<div class="post-metadata">

**Author:** ![Skylonxe](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Skylonxe](https://forums.unrealengine.com/u/Skylonxe)\
**Post date:** [March 21, 2016, 2:43pm UTC](https://forums.unrealengine.com/t/virtual-joystick-captures-touch-input/350614/2 "2016-03-21T14:43:27Z")

</div>

Bumpy bump

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_48f2118e](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_48f2118e](https://forums.unrealengine.com/u/anonymous_user_48f2118e)\
**Post date:** [April 8, 2016, 10:57pm UTC](https://forums.unrealengine.com/t/virtual-joystick-captures-touch-input/350614/3 "2016-04-08T22:57:15Z")

</div>

Experiment with setting your UMG ZOrder settings to values around -15 or lower.

---

<div class="post-metadata">

**Author:** ![Skylonxe](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Skylonxe](https://forums.unrealengine.com/u/Skylonxe)\
**Post date:** [May 1, 2016, 12:03pm UTC](https://forums.unrealengine.com/t/virtual-joystick-captures-touch-input/350614/4 "2016-05-01T12:03:18Z")

</div>

Input to my widget does not pass because It is added using Add To Player Screen. I needed to add it to screen via Add To Viewport and set ZOrder to something higher than zero.

---

<div class="post-metadata">

**Author:** ![Haoris](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Haoris](https://forums.unrealengine.com/u/Haoris)\
**Post date:** [December 7, 2016, 10:46pm UTC](https://forums.unrealengine.com/t/virtual-joystick-captures-touch-input/350614/5 "2016-12-07T22:46:20Z")

</div>

What’s the point of changing Zorder?

If your UMG Zorder is lower than virtual joystick, you can use virtual joysticks but they will block input to UMG canvas and you can’t use UMG buttons  
If your UMG Zorder is higher than virtual joysticks, your UMG canvas will block inputs to virtual joystick and you can’t use them.  
The solution will be to be able to click through canvas and I suppose that’s why “set hit test invisible” is made for, but it doesn’t work and it’s like that since almost one year.

---

<div class="post-metadata">

**Author:** ![mightyenigma](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mightyenigma](https://forums.unrealengine.com/u/mightyenigma)\
**Post date:** [March 8, 2018, 1:22am UTC](https://forums.unrealengine.com/t/virtual-joystick-captures-touch-input/350614/6 "2018-03-08T01:22:40Z")

</div>

bumpity bump please

---

<div class="post-metadata">

**Author:** ![AleksandrStukalov](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/aleksandrstukalov/32/594726_2.png) [@AleksandrStukalov](https://forums.unrealengine.com/u/AleksandrStukalov)\
**Post date:** [August 1, 2023, 8:02am UTC](https://forums.unrealengine.com/t/virtual-joystick-captures-touch-input/350614/7 "2023-08-01T08:02:11Z")

</div>

Surprisingly, setting ZOrder to 1 for buttons solved an issue with inability to use joystick and buttons simultaneously on Android. Even though, according to [this answer](https://forums.unrealengine.com/t/virtual-joystick-captures-touch-input/350614/6), it shouldn’t work.
