# Disable Default UI Thumbstick Navigation?

**URL:** <https://forums.unrealengine.com/t/disable-default-ui-thumbstick-navigation/1203442>\
**Category:** UI\
**Tags:** UE-5, Navigation, unreal-engine, UI, CPP, Blueprint, question, UMG\
**Created:** [June 18, 2023, 9:06pm UTC](https://forums.unrealengine.com/t/disable-default-ui-thumbstick-navigation/1203442 "2023-06-18T21:06:16Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![BDC\_Patrick](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/bdc_patrick/32/1104221_2.png) [@BDC\_Patrick](https://forums.unrealengine.com/u/BDC_Patrick)\
**Post date:** [June 18, 2023, 9:06pm UTC](https://forums.unrealengine.com/t/disable-default-ui-thumbstick-navigation/1203442/1 "2023-06-18T21:06:16Z")

</div>

So…  
Hopefully… my last problem with UI in common… not just common UI…

By default, unreal handles the directional Inputs by default Input Methods.  
Keyboard-Cursors, Gamepad D-Pad AND… Analog (Thumb-) Sticks…

Last one is a Problem… since i want my Player being able to walk around, while f.e. the Inventory is opened and controlable…

Problem… when the Player walks around, the Inventory Slots switch… cause UI registers the Thumbstick Inputs as UI Input…

So… my Question:  
How to disable Thumbstick Input for UI?  
So the Player can still walk around, and the UI can be controlled with D-Pad only?

tried Solutions:

- [Annoying bugs with UMG focus (with Is Focusable? on all widgets false) - #4 by Ixiguis](https://forums.unrealengine.com/t/annoying-bugs-with-umg-focus-with-is-focusable-on-all-widgets-false/60280/4)
- [Custom remappable Slate navigation config | Unreal engine Code Snippet](https://dev.epicgames.com/community/snippets/7Wy/custom-remappable-slate-navigation-config)

---

<div class="post-metadata">

**Author:** ![DaniloAlimo](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DaniloAlimo](https://forums.unrealengine.com/u/DaniloAlimo)\
**Post date:** [December 5, 2023, 9:52pm UTC](https://forums.unrealengine.com/t/disable-default-ui-thumbstick-navigation/1203442/2 "2023-12-05T21:52:47Z")

</div>

Did you Find an fix for this problem ? I want to know too !

---

<div class="post-metadata">

**Author:** ![boowowsion64](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@boowowsion64](https://forums.unrealengine.com/u/boowowsion64)\
**Post date:** [January 24, 2024, 7:07pm UTC](https://forums.unrealengine.com/t/disable-default-ui-thumbstick-navigation/1203442/3 "2024-01-24T19:07:02Z")

</div>

Set is focusable to false for all of your buttons used as inventory slots.

---

<div class="post-metadata">

**Author:** ![BDC\_Patrick](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/bdc_patrick/32/1104221_2.png) [@BDC\_Patrick](https://forums.unrealengine.com/u/BDC_Patrick)\
**Post date:** [January 24, 2024, 8:28pm UTC](https://forums.unrealengine.com/t/disable-default-ui-thumbstick-navigation/1203442/4 "2024-01-24T20:28:27Z")

</div>

Which would make the Inventory not controlable while walking.

I made a compromise by switching Left and Right Thumbstick via custom Slate Navigation.

Not perfect, but acceptable .

---

<div class="post-metadata">

**Author:** ![boowowsion64](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@boowowsion64](https://forums.unrealengine.com/u/boowowsion64)\
**Post date:** [January 25, 2024, 4:26pm UTC](https://forums.unrealengine.com/t/disable-default-ui-thumbstick-navigation/1203442/5 "2024-01-25T16:26:56Z")

</div>

What I did is just to turn all them off and use input event to control and highlights UI parts with different kinds of arrays. It works for me since set focus interrupts the input I think.

---

<div class="post-metadata">

**Author:** ![SumbodySumwher](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SumbodySumwher](https://forums.unrealengine.com/u/SumbodySumwher)\
**Post date:** [January 26, 2024, 3:56pm UTC](https://forums.unrealengine.com/t/disable-default-ui-thumbstick-navigation/1203442/6 "2024-01-26T15:56:30Z")

</div>

The provided solution is not ideal and did not work for me.  
Here’s how I did it (described also here [Disable analog stick input on UMG? - #11 by SumbodySumwher](https://forums.unrealengine.com/t/disable-analog-stick-input-on-umg/351671/11) )

I created a function that accesses the NavigationConfig from FSlateApplication, and setts the bAnalogNavigation to true/false.

```cpp
#include "Framework/Application/NavigationConfig.h"

void AMyPlayerController::ToggleThumbstickUiNavigation(bool ThumbstickNavigationEnabled) {
	if (FSlateApplication::IsInitialized()) {
		TSharedRef<FNavigationConfig> currentNavConfig = FSlateApplication::Get().GetNavigationConfig();
		currentNavConfig->bAnalogNavigation = ThumbstickNavigationEnabled;
		FSlateApplication::Get().SetNavigationConfig(currentNavConfig);
	}
}

```

---

<div class="post-metadata">

**Author:** ![system](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/3/713c9d3f58553f0de89543d76a8a3a2779dc9fa4.png) [@system](https://forums.unrealengine.com/u/system)\
**Post date:** [February 25, 2024, 3:57pm UTC](https://forums.unrealengine.com/t/disable-default-ui-thumbstick-navigation/1203442/7 "2024-02-25T15:57:05Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
