mirror of
https://github.com/PCSX2/pcsx2.git
synced 2026-07-11 01:34:17 +02:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user