FullscreenUI: Fix analog requiring neutral position to reset

Before, the analog stick would have to reset to the neutral position before allowing the cursor to move again. This has been fixed, cursor moves now once it crosses 45 degrees towards a new axis.
This commit is contained in:
jasaaved
2026-05-05 10:25:19 -07:00
committed by Ty
parent e16236e450
commit 04438ace57
+1 -1
View File
@@ -1314,7 +1314,7 @@ void ImGuiManager::ProcessGenericAxisEvent(GenericInputBinding negative_key, Gen
if (state)
{
const float other = is_x_axis ? state->y : state->x;
if (std::abs(other) > ACTIVATE_THRESHOLD)
if (std::abs(other) > std::abs(value))
suppressed_value = 0.0f;
}