# UMG 4.5 Gamepad Firing Hover Button Events

**URL:** <https://forums.unrealengine.com/t/umg-4-5-gamepad-firing-hover-button-events/297599>\
**Category:** UI\
**Tags:** gamepad, hover, event-firing, unreal-engine, question, CPP, UMG\
**Created:** [October 29, 2014, 2:30pm UTC](https://forums.unrealengine.com/t/umg-4-5-gamepad-firing-hover-button-events/297599 "2014-10-29T14:30:02Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_5cc49e16](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_5cc49e16](https://forums.unrealengine.com/u/anonymous_user_5cc49e16)\
**Post date:** [October 29, 2014, 2:30pm UTC](https://forums.unrealengine.com/t/umg-4-5-gamepad-firing-hover-button-events/297599/1 "2014-10-29T14:30:02Z")

</div>

Hi,

Our game use UMG heavily for it’s ui and use Gamepad for the input. Say I have a button which has a different display when hovered with mouse. How can I use gamepad to trigger that OnHover state on the button? Like when we press up/down on the gamepad, buttons would alter its style between hover normal, pressed, etc.

Is my approach correct? Or should I use another method? My goal is probably calling the hover functions on c++ or something along with set the button bIsHovered boolean flag, but I can’t find any doc about this

Thanks for the help

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_5cc49e16](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_5cc49e16](https://forums.unrealengine.com/u/anonymous_user_5cc49e16)\
**Post date:** [November 4, 2014, 9:54am UTC](https://forums.unrealengine.com/t/umg-4-5-gamepad-firing-hover-button-events/297599/2 "2014-11-04T09:54:19Z")

</div>

Hello, just for curiosity, is this going to be supported on 4.6?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_e729f54e](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_e729f54e](https://forums.unrealengine.com/u/anonymous_user_e729f54e)\
**Post date:** [November 10, 2014, 8:50pm UTC](https://forums.unrealengine.com/t/umg-4-5-gamepad-firing-hover-button-events/297599/3 "2014-11-10T20:50:21Z")

</div>

Hello ernesernesto,

I have an example of a way you could use your game pad to “highlight” your buttons. The following example cycles through 3 buttons (highlights the next button down every time I hit the down key) changing them to their hovered state by setting their normal state to look like the hovered state. I have also attached my blueprints in note pad form. You can copy and paste them straight from the wordpad to your blueprints. Blueprints 1. [YourWidget][1] 2. [PlayerController][2]

Things that you will need.

1. Widget blueprint
2. Player controller
3. 5 buttons (in widget blueprint)

In the player controller:

 ![20685-cyclehelp2.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/5/6/7562b8f42dd101cb65e0d40bdbc70c556d5a957a.png)

In your widget designer tab:

 ![20686-cyclehelp3.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/d/5/dd5d18cc8ffd814c8a49e7fce66d88aeaf513482.png)

In the Event graph of your widget

 ![20687-cyclehelp.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/0/1/101f83b281df8f070e4bd9a8411617742adbf1c2.png)

I hope this helps.

Make it a great day

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_5cc49e16](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_5cc49e16](https://forums.unrealengine.com/u/anonymous_user_5cc49e16)\
**Post date:** [November 11, 2014, 1:51am UTC](https://forums.unrealengine.com/t/umg-4-5-gamepad-firing-hover-button-events/297599/4 "2014-11-11T01:51:38Z")

</div>

Hi ,

Thanks for your effort and time! This hover problem could be achieved using your method probably, but I was looking for something that could be bindable like this, on the designer panel.

![20712-enabled.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/6/c/96c0245207ee2c39735d0041573ee010db1f504c.png)

I can’t find way to make isHover and isSelected show up on this panel, is unreal going to be supporting this? What if I want this as a feature request on 4.6? Since this could save a lot of blueprint work 🙂

Anyway, going to try this solution, thanks !

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_e729f54e](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_e729f54e](https://forums.unrealengine.com/u/anonymous_user_e729f54e)\
**Post date:** [November 11, 2014, 2:19pm UTC](https://forums.unrealengine.com/t/umg-4-5-gamepad-firing-hover-button-events/297599/5 "2014-11-11T14:19:36Z")

</div>

Hello

I have submitted a feature request ( UE-5270) to the developers. I hope that my example allows you to continue your progress on your project. I will provide updates with any pertinent information as it becomes available.

Make it a great day

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_5cc49e16](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_5cc49e16](https://forums.unrealengine.com/u/anonymous_user_5cc49e16)\
**Post date:** [November 12, 2014, 1:42am UTC](https://forums.unrealengine.com/t/umg-4-5-gamepad-firing-hover-button-events/297599/6 "2014-11-12T01:42:16Z")

</div>

Great help !, thanks again

---

<div class="post-metadata">

**Author:** ![CHADALAK1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@CHADALAK1](https://forums.unrealengine.com/u/CHADALAK1)\
**Post date:** [January 19, 2015, 8:47pm UTC](https://forums.unrealengine.com/t/umg-4-5-gamepad-firing-hover-button-events/297599/7 "2015-01-19T20:47:16Z")

</div>

,

Is there a way to reverse that Multigate when the Up button is pressed?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_e729f54e](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_e729f54e](https://forums.unrealengine.com/u/anonymous_user_e729f54e)\
**Post date:** [January 21, 2015, 3:52pm UTC](https://forums.unrealengine.com/t/umg-4-5-gamepad-firing-hover-button-events/297599/8 "2015-01-21T15:52:11Z")

</div>

Hello CHADALAK1,

I have another setup that I have made that I can share with you. This one has more flexibility and also incorporates the up/down functionality. [_ **Your Widget Example** _][1] This is the actual widget. I have provided it to you to help you along. This was made in 4.7 if you would like to add it to a project to take a look at it. You will need to unzip it and add it to the content folder of your project.

You will need to set up the following in the event graph of your Widget. The index only needs to be initialized as 0 outside the functions. To add more buttons you will need to increase the number for “Number of Btns”.

 ![27452-buttonhighlighthelp1.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/8/2/a82bf85d74747c95f37a971ed0144cb257e9881e.png)

Here I have used one of the default functions (On Key Down) that are available to you in the My Blueprints panel under input. You will also see to custom functions that I will show you how to make. To add more buttons you will need to add new “Highlight Function” functions.

 ![27454-buttonhighlighthelp2.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/f/9/cf9fc18adcb9307031c53768221161b764daab87.png)

This is my “Highlight logic” function it will handle the logic that will be needed to change between buttons.

 ![27455-buttonhighlighthelp3.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/a/c/8ac9020ac5458d94cb1c90f05e1c9901037ea9c3.png)

This is my “Highlight function” this is what will be used to fake the buttons being highlighted. To increase the number of buttons used you will need to add a new “DeSelect” pin and a new “Set Widget Style” node for each button added

 ![27456-buttonhighlighthelp4.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/1/f/e1f78ed9a5327dd6a398ff3abbb1b93b4de74a3f.png)

Make it a great day

---

<div class="post-metadata">

**Author:** ![stoppschildgruen](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@stoppschildgruen](https://forums.unrealengine.com/u/stoppschildgruen)\
**Post date:** [February 9, 2015, 1:19am UTC](https://forums.unrealengine.com/t/umg-4-5-gamepad-firing-hover-button-events/297599/9 "2015-02-09T01:19:37Z")

</div>

Hi ,

how do you made these connectors/points in your blueprints? THX

[![Bild hochladen](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/3/f/63f749737c05a83ab3dd0d7acae8d4bd0fd1972c.jpeg)](http://www.pic-upload.de/view-26088263/bpdots.jpg.html)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_e729f54e](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_e729f54e](https://forums.unrealengine.com/u/anonymous_user_e729f54e)\
**Post date:** [February 9, 2015, 2:10pm UTC](https://forums.unrealengine.com/t/umg-4-5-gamepad-firing-hover-button-events/297599/10 "2015-02-09T14:10:11Z")

</div>

Hello stopschildgruen,

These are called rerout nodes, they are great for cleaning up your blueprints. You simply need to right click and type rerout. This should make it the first option. I hope this helps.

Make it a great day

---

<div class="post-metadata">

**Author:** ![Eight\_Bit\_Punk](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Eight\_Bit\_Punk](https://forums.unrealengine.com/u/Eight_Bit_Punk)\
**Post date:** [July 30, 2015, 1:15pm UTC](https://forums.unrealengine.com/t/umg-4-5-gamepad-firing-hover-button-events/297599/11 "2015-07-30T13:15:10Z")

</div>

following because this feature would be awesome 🙂

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_e729f54e](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_e729f54e](https://forums.unrealengine.com/u/anonymous_user_e729f54e)\
**Post date:** [July 30, 2015, 2:04pm UTC](https://forums.unrealengine.com/t/umg-4-5-gamepad-firing-hover-button-events/297599/12 "2015-07-30T14:04:00Z")

</div>

Hello UnlikelyHeroesStudios,

After further consideration by the developers this feature will not be implemented into the engine. However, you could try using the “Has User Focus” node in combination with changing the image for the “normal” state of the button. I hope that this information helps.

![52093-hasuserfocushelp.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/1/9/3194153cf5f858960ffc98c7eae05afab2a80432.png)

Make it a great day
