# Touch Input , Convert this Blueprints into C++, Urgent Help need.

**URL:** <https://forums.unrealengine.com/t/touch-input-convert-this-blueprints-into-c-urgent-help-need/551981>\
**Category:** C++\
**Tags:** unreal-engine, Android, UE4-27, question, CPP\
**Created:** [May 8, 2022, 2:16pm UTC](https://forums.unrealengine.com/t/touch-input-convert-this-blueprints-into-c-urgent-help-need/551981 "2022-05-08T14:16:39Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nocts](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Nocts](https://forums.unrealengine.com/u/Nocts)\
**Post date:** [May 8, 2022, 2:16pm UTC](https://forums.unrealengine.com/t/touch-input-convert-this-blueprints-into-c-urgent-help-need/551981/1 "2022-05-08T14:16:40Z")

</div>

I wanted to set up a touch input for mobile fps game but was unbailable to find a solution in C++ , But Found this Blueprint and works. Wants to Convert this Blueprint into C++ Anyone’s help would be

 ![Screenshot 2022-05-08 184807](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/4/4/d4498b79d5796376fda0d5016d35988d60884017.jpeg)  
greatly appreciated. Thank You

---

<div class="post-metadata">

**Author:** ![Ares9323](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ares9323/32/1194521_2.png) [@Ares9323](https://forums.unrealengine.com/u/Ares9323)\
**Post date:** [May 8, 2022, 10:21pm UTC](https://forums.unrealengine.com/t/touch-input-convert-this-blueprints-into-c-urgent-help-need/551981/2 "2022-05-08T22:21:01Z")

</div>

What does “update post” do? Can you expand it?

By the way if you create a third person project in C++ you should be able to see a template of controls

---

<div class="post-metadata">

**Author:** ![Nocts](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Nocts](https://forums.unrealengine.com/u/Nocts)\
**Post date:** [May 9, 2022, 7:49am UTC](https://forums.unrealengine.com/t/touch-input-convert-this-blueprints-into-c-urgent-help-need/551981/3 "2022-05-09T07:49:46Z")

</div>

Hi Ares9323,  
**Update post** is a custom event and its input is a Vector 2D.  
Yes i tried but in the third person c++ project touch in function set to jump only.  
plz check this video it will explain what i want to say .

[https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/b/d/2bd8efe88dcbc207ce9f79b6d473aef01c1df706.mp4](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/b/d/2bd8efe88dcbc207ce9f79b6d473aef01c1df706.mp4)
  
and this function(blueprint) wanted in c++ , can you please provide a solution  
Thank you

---

<div class="post-metadata">

**Author:** ![dorusoftware](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@dorusoftware](https://forums.unrealengine.com/u/dorusoftware)\
**Post date:** [May 9, 2022, 8:51am UTC](https://forums.unrealengine.com/t/touch-input-convert-this-blueprints-into-c-urgent-help-need/551981/4 "2022-05-09T08:51:09Z")

</div>

what do you want that to be in C++? Can’t you just use the blueprint?

If you don’t know how to write that code in C++ means you probably should try to use blueprints anyway.

---

<div class="post-metadata">

**Author:** ![Ares9323](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ares9323/32/1194521_2.png) [@Ares9323](https://forums.unrealengine.com/u/Ares9323)\
**Post date:** [May 9, 2022, 9:14am UTC](https://forums.unrealengine.com/t/touch-input-convert-this-blueprints-into-c-urgent-help-need/551981/5 "2022-05-09T09:14:20Z")

</div>

> [@Nocts](#):
>
> Yes i tried but in the third person c++ project touch in function set to jump only.

This is the default third person cpp and the all the commands work

Make sure that you have correctly setup the gamepad input (because they are shared with mobile)

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/8/3/8832f379ca141f331fe1474b3a918c694330e2a4.png)

---

<div class="post-metadata">

**Author:** ![Nocts](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Nocts](https://forums.unrealengine.com/u/Nocts)\
**Post date:** [May 9, 2022, 4:13pm UTC](https://forums.unrealengine.com/t/touch-input-convert-this-blueprints-into-c-urgent-help-need/551981/6 "2022-05-09T16:13:46Z")

</div>

Yes you are probably right but since i have started from blak project and added CameraControl,SpringArmControl,Binding Axies for left joysticks thought myself whynot and became one-sided and started making everything in C++  
wants to make a fps/tps game for mobile and I’m afraid of blueprint-lag in match.

---

<div class="post-metadata">

**Author:** ![Nocts](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Nocts](https://forums.unrealengine.com/u/Nocts)\
**Post date:** [May 9, 2022, 4:21pm UTC](https://forums.unrealengine.com/t/touch-input-convert-this-blueprints-into-c-urgent-help-need/551981/7 "2022-05-09T16:21:47Z")

</div>

Thank you for your response  
plz look at this video

[https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/d/c/ddc92c72ba50a791400f5f3b339742636a400a49.mp4](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/d/c/ddc92c72ba50a791400f5f3b339742636a400a49.mp4)
  
this how the blueprint works hope this will clear any doubts.

its hard to aim with right joystick ,so wanted same controls like pubg mobile or coll of duty mobile ,witch is easier to aim at you enemy .  
(why c++ for this type of action, wants pure performance and none-zero input lag)

Will wait for your reply😊

---

<div class="post-metadata">

**Author:** ![Ares9323](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ares9323/32/1194521_2.png) [@Ares9323](https://forums.unrealengine.com/u/Ares9323)\
**Post date:** [May 9, 2022, 6:42pm UTC](https://forums.unrealengine.com/t/touch-input-convert-this-blueprints-into-c-urgent-help-need/551981/8 "2022-05-09T18:42:09Z")

</div>

> [@Nocts](#):
>
> I’m afraid of blueprint-lag in match.

If you use “blueprint nativization” you will have performances almost identical to c++.

> [@Nocts](#):
>
> this how the blueprint works hope this will clear any doubts.

I wasn’t sure about that but I imagined that you removed the right thumbstick on purpose (I asked just to be sure)

> [@Nocts](#):
>
> Will wait for your reply😊

I’m pretty busy at the moment, I’ll try to answer asap
