# Gamepad/Keyboard "Focused" doesn't change button image to "Hover"

**URL:** <https://forums.unrealengine.com/t/gamepad-keyboard-focused-doesnt-change-button-image-to-hover/437410>\
**Category:** UI\
**Tags:** gamepad, hover, focus, unreal-engine, keyboard, question, UMG\
**Created:** [November 11, 2018, 12:12am UTC](https://forums.unrealengine.com/t/gamepad-keyboard-focused-doesnt-change-button-image-to-hover/437410 "2018-11-11T00:12:25Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![HaiderRaza](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@HaiderRaza](https://forums.unrealengine.com/u/HaiderRaza)\
**Post date:** [November 11, 2018, 12:12am UTC](https://forums.unrealengine.com/t/gamepad-keyboard-focused-doesnt-change-button-image-to-hover/437410/1 "2018-11-11T00:12:25Z")

</div>

Why doesn’t UE4 instead of drawing the dotted box around the button actually change the style of the button to hovered? It works fine with the mouse but gamepad/keyboard don’t work. I refuse to create arrays of buttons and run around manually setting style in blueprints. There must be a proper way to do this.

---

<div class="post-metadata">

**Author:** ![MBybee](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MBybee](https://forums.unrealengine.com/u/MBybee)\
**Post date:** [September 29, 2019, 1:52am UTC](https://forums.unrealengine.com/t/gamepad-keyboard-focused-doesnt-change-button-image-to-hover/437410/2 "2019-09-29T01:52:44Z")

</div>

Hard to believe this is still an issue, it’s been an issue since UMG came out.

---

<div class="post-metadata">

**Author:** ![Ruffhaus](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ruffhaus/32/1194663_2.png) [@Ruffhaus](https://forums.unrealengine.com/u/Ruffhaus)\
**Post date:** [September 29, 2019, 2:25am UTC](https://forums.unrealengine.com/t/gamepad-keyboard-focused-doesnt-change-button-image-to-hover/437410/3 "2019-09-29T02:25:51Z")

</div>

Not a perfect solution but I solve it like this.

 ![288721-hovered.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/a/6/1a6c9beb7e1664e4e5042043d413098e53ccfaa4.png)

It’s a generic button class I created so I can get the focussed event but it will work however you are telling the button that it is in focus.

---

<div class="post-metadata">

**Author:** ![Online\_Learner\_dECv1](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/online_learner_decv1/32/489350_2.png) [@Online\_Learner\_dECv1](https://forums.unrealengine.com/u/Online_Learner_dECv1)\
**Post date:** [May 25, 2022, 6:25pm UTC](https://forums.unrealengine.com/t/gamepad-keyboard-focused-doesnt-change-button-image-to-hover/437410/4 "2022-05-25T18:25:12Z")

</div>

> [@Ruffhaus](#):
>
> class I

UNREAL SHOULD PIN THIS ANWSER IN EVERY FORUM AND YOUTUBE TUTORIAL ABOUT GAMEPAD NAVIGATION! I looked for this solution in many different places and did not find anything clear. Thank you for your anwser!

---

<div class="post-metadata">

**Author:** ![hiiii5](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@hiiii5](https://forums.unrealengine.com/u/hiiii5)\
**Post date:** [August 13, 2023, 7:10pm UTC](https://forums.unrealengine.com/t/gamepad-keyboard-focused-doesnt-change-button-image-to-hover/437410/5 "2023-08-13T19:10:03Z")

</div>

This is the correct answer.
