# How do I make the buttons on screen do something?

**URL:** <https://forums.unrealengine.com/t/how-do-i-make-the-buttons-on-screen-do-something/324113>\
**Category:** UI\
**Tags:** hud, Mobile, mobile-device, unreal-engine, Widget, question\
**Created:** [July 5, 2015, 1:16am UTC](https://forums.unrealengine.com/t/how-do-i-make-the-buttons-on-screen-do-something/324113 "2015-07-05T01:16:37Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_600b05c41](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_600b05c41](https://forums.unrealengine.com/u/anonymous_user_600b05c41)\
**Post date:** [July 5, 2015, 1:16am UTC](https://forums.unrealengine.com/t/how-do-i-make-the-buttons-on-screen-do-something/324113/1 "2015-07-05T01:16:37Z")

</div>

Im making a mobile game where the main player stands still and only turns right or left 90 degrees so how do I make the buttons on screen make the player look left 90 or right 90 Etc as a test I have the right button quitting the game.

 ![49106-untitled2.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/c/d/1cd2a5670735fe69a0b6ecc172908020014e6cb4.png)

 ![49105-untitled-1.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/3X/c/e/ce16a453bc3dfe785a85377fa9eefaed9ddaab86.jpeg)

---

<div class="post-metadata">

**Author:** ![Timmeh\_ZA](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Timmeh\_ZA](https://forums.unrealengine.com/u/Timmeh_ZA)\
**Post date:** [July 5, 2015, 11:10pm UTC](https://forums.unrealengine.com/t/how-do-i-make-the-buttons-on-screen-do-something/324113/2 "2015-07-05T23:10:18Z")

</div>

I guess you could do something like:  
On clicked → Get Pawn → Add Controller Yaw Input (90 , -90).  
Or Get Pawn → Set Actor Rotation for absolute rotations.  
Hope this helps.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_600b05c41](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_600b05c41](https://forums.unrealengine.com/u/anonymous_user_600b05c41)\
**Post date:** [July 5, 2015, 11:19pm UTC](https://forums.unrealengine.com/t/how-do-i-make-the-buttons-on-screen-do-something/324113/3 "2015-07-05T23:19:55Z")

</div>

Ive tried that im in the graph editor for the UMG widget and sadly while in that graph editor you cant find anything like that i guess there not linked

---

<div class="post-metadata">

**Author:** ![Timmeh\_ZA](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Timmeh\_ZA](https://forums.unrealengine.com/u/Timmeh_ZA)\
**Post date:** [July 6, 2015, 12:49am UTC](https://forums.unrealengine.com/t/how-do-i-make-the-buttons-on-screen-do-something/324113/4 "2015-07-06T00:49:09Z")

</div>

These nodes do more or less what you’re describing. Still, it’s not perfect (Rotation value needs fine tuning, and I don’t know if the above way of accessing the pawn is good practice because of that ‘cosmetic only’ specification).  
And for some reason using ‘Set Actor Rotation’ did not work on the pawn referenced either way.

 ![49213-leftrightbuttons.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/c/2/ac2b01c836f94201be2312220961d27f969ba503.png)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_600b05c41](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_600b05c41](https://forums.unrealengine.com/u/anonymous_user_600b05c41)\
**Post date:** [July 6, 2015, 1:35am UTC](https://forums.unrealengine.com/t/how-do-i-make-the-buttons-on-screen-do-something/324113/5 "2015-07-06T01:35:50Z")

</div>

OH GOD YOU ARE MY HERO! For starters the reason why I couldn’t find any pawns was because I had the context sensitive box checked but I took that off and found functions like ‘get owning player’ and ‘player pawn’ but even then what you posetd really helped thanks alot! 😃

![49216-ttyt.gif](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/b/b/6bbefea4808443def29b4d5bcae07f175ad486f8.gif)

---

<div class="post-metadata">

**Author:** ![Timmeh\_ZA](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Timmeh\_ZA](https://forums.unrealengine.com/u/Timmeh_ZA)\
**Post date:** [July 6, 2015, 10:36am UTC](https://forums.unrealengine.com/t/how-do-i-make-the-buttons-on-screen-do-something/324113/6 "2015-07-06T10:36:46Z")

</div>

You’re welcome. Good luck on the project!
