# How to navigate with a gamepad on Input Key Selector

**URL:** <https://forums.unrealengine.com/t/how-to-navigate-with-a-gamepad-on-input-key-selector/2161491>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine, UI, question, CPP\
**Created:** [December 1, 2024, 2:06pm UTC](https://forums.unrealengine.com/t/how-to-navigate-with-a-gamepad-on-input-key-selector/2161491 "2024-12-01T14:06:11Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Voxiit](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/voxiit/32/1217475_2.png) [@Voxiit](https://forums.unrealengine.com/u/Voxiit)\
**Post date:** [December 1, 2024, 2:06pm UTC](https://forums.unrealengine.com/t/how-to-navigate-with-a-gamepad-on-input-key-selector/2161491/1 "2024-12-01T14:06:12Z")

</div>

Hi everyone,

I’ve finished my menus and they work perfectly fine with a mouse and a keyboard. Now I’m trying to implement **Gamepad** navigation but I’ve found myself stuck with **Input Key Selector**.

Most of my menus are **Buttons** , so when I’m using a gamepad to navigate I simply check at the tick which button has the **Keyboard Focus** to change its color. So far this was working perfectly fine, enven tough it might not be the best system. But for my input settings menu that doesn’t contains just **Buttons** but also **Input Key Selector** this is not working at all.

I wanted to check at the tick in this menu which **Input Key Selector** has the **Keyboard Focus** so I can change its **Tint Color** but it doesn’t seems to be possible. I’ve tried to change it directly or to use the **FButtonStyle::SetNormal** function but I can’t compile.

Here’s my code that I try to do in the tick if the **Input Key Selector** has the **Keyboard Focus**. I try to apply the color of its **Hovered** state.

```auto
if (UInputKeySelector* InputKeySelector = Cast<UInputKeySelector>(InWidget))
{
    FSlateBrush HoverSlate = InputKeySelector->WidgetStyle.Hovered;
    InputKeySelector->GetButtonStyle().SetNormal(HoverSlate);
}

```

And here’s the error message that I have :  
`error C2662: 'FButtonStyle &FButtonStyle::SetNormal(const FSlateBrush &)': cannot convert 'this' pointer from 'const FButtonStyle' to 'FButtonStyle &'`

I know I’m missing something here but I can’t figure what it is.  
Can someone please tell me what I’m doing wrong ?

Thank you for your time.

---

<div class="post-metadata">

**Author:** ![Kotaru\_1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Kotaru\_1](https://forums.unrealengine.com/u/Kotaru_1)\
**Post date:** [August 13, 2025, 9:43pm UTC](https://forums.unrealengine.com/t/how-to-navigate-with-a-gamepad-on-input-key-selector/2161491/2 "2025-08-13T21:43:33Z")

</div>

Hey, I was having similar issues (made a post linked below) and was wondering if you ever found a solution to this issue.

> [@InputKeySelector navigation rules do not work](https://forums.unrealengine.com/t/inputkeyselector-navigation-rules-do-not-work/2639565):
>
> While using InputKeySelector, I wanted to use a custom navigation method, but found that it would never trigger my navigation function. Setting regular buttons to this navigation rule works properly, however with InputKeySelectors, it never calls the bound function. Instead it seems to use the “Escape” navigation method. In fact, setting the navigation rule to any other navigation method (e.g. “Stop” or “Explicit”) seems to result in the “Escape” functionality

---

<div class="post-metadata">

**Author:** ![Voxiit](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/voxiit/32/1217475_2.png) [@Voxiit](https://forums.unrealengine.com/u/Voxiit)\
**Post date:** [August 22, 2025, 9:10am UTC](https://forums.unrealengine.com/t/how-to-navigate-with-a-gamepad-on-input-key-selector/2161491/3 "2025-08-22T09:10:22Z")

</div>

Hi, sorry I haven’t saw your response earlier.

Unfortunatly no, I switched to using Common UI on my project but I never had time to finished it so my menus are still broken

---

<div class="post-metadata">

**Author:** ![Kotaru\_1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Kotaru\_1](https://forums.unrealengine.com/u/Kotaru_1)\
**Post date:** [August 23, 2025, 12:45am UTC](https://forums.unrealengine.com/t/how-to-navigate-with-a-gamepad-on-input-key-selector/2161491/4 "2025-08-23T00:45:55Z")

</div>

> [@Voxiit](#):
>
> Unfortunatly no, I switched to using Common UI on my project but I never had time to finished it so my menus are still broken

Ah, I see. Yeah I too ended up just making a custom input key selector out of a common UI button. Still a few quirks with mapping gamepad keys there tho. For example it reads gamepad face button bottom as a mouse button. And if you set it to not simulate mouse input, it will only allow you to press the top button in the hierarchy (like if its in a vertical box for example).

But I figure it’s just a matter of overriding some CommonUIActionRouter functionality, so I’ll let you know if I figure something out there as well.

---

<div class="post-metadata">

**Author:** ![Voxiit](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/voxiit/32/1217475_2.png) [@Voxiit](https://forums.unrealengine.com/u/Voxiit)\
**Post date:** [August 27, 2025, 9:12am UTC](https://forums.unrealengine.com/t/how-to-navigate-with-a-gamepad-on-input-key-selector/2161491/5 "2025-08-27T09:12:54Z")

</div>

I’ll have to get back to this project in september so likewise. I’ll let you know if I found something.
