# How to connect hitbox buttons instead of keyboard buttons?

**URL:** <https://forums.unrealengine.com/t/how-to-connect-hitbox-buttons-instead-of-keyboard-buttons/291678>\
**Category:** UI\
**Tags:** buttons, hud, unreal-engine, hitbox, Blueprint, question\
**Created:** [August 22, 2014, 7:25am UTC](https://forums.unrealengine.com/t/how-to-connect-hitbox-buttons-instead-of-keyboard-buttons/291678 "2014-08-22T07:25:27Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Airner](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Airner](https://forums.unrealengine.com/u/Airner)\
**Post date:** [August 22, 2014, 7:25am UTC](https://forums.unrealengine.com/t/how-to-connect-hitbox-buttons-instead-of-keyboard-buttons/291678/1 "2014-08-22T07:25:27Z")

</div>

Hi there 🙂

I would like to connect these:

 ![13413-hud02.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/c/d/5cd38865ea4dfff6db65a5afc40a74df02c10f50.jpeg)

with these hitboxes:

 ![13414-hud01.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/8/0/38075546ff1e688b300e993e847dbf46b42896ac.jpeg)

These are all in one blueprint. Could someone please connect the dots (nodes) for me? I’m stuck here for days now 😕

So instead of Left/Right arrow, I need click events for buttons. I’m a noob so any suggestions for simple/better solutions for clickable buttons are welcome as well 🙂

---

<div class="post-metadata">

**Author:** ![tomofnz](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@tomofnz](https://forums.unrealengine.com/u/tomofnz)\
**Post date:** [August 22, 2014, 7:56am UTC](https://forums.unrealengine.com/t/how-to-connect-hitbox-buttons-instead-of-keyboard-buttons/291678/2 "2014-08-22T07:56:05Z")

</div>

You’re on your way.  
Just add EventHitboxClicked event (and other button state events) using the hitbox command’s NAME variable.  
Note you only have one event for click, so you have to branch it out …

 ![13407-2014-08-22+19_47_25-kitbash_3p+-+unreal+editor.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/3/c/b3cc0a9ad3d447d92070d0a969f028d4a8a1e2e5.png)

![13406-2014-08-22+19_41_04-.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/f/1/8f19b5fdb3f74db64ee197fb8978f4e51cac6cd2.png)

---

<div class="post-metadata">

**Author:** ![Airner](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Airner](https://forums.unrealengine.com/u/Airner)\
**Post date:** [August 23, 2014, 2:37pm UTC](https://forums.unrealengine.com/t/how-to-connect-hitbox-buttons-instead-of-keyboard-buttons/291678/3 "2014-08-23T14:37:28Z")

</div>

Thanks, that put me on the right track. I used “Switch on Name” instead of Branches, It is more simple, but what is important here, that you can call the hitboxes by name. Problem solved, much obliged tomofnz  
!
