Disable Default UI Thumbstick Navigation?

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 )

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

#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);
	}
}
2 Likes