input_patches: fix cursor velocity retaining after D-Pad input

This commit is contained in:
Hyper 2025-01-26 20:15:56 +00:00
parent dee2a36d0f
commit 7c989af42c

View file

@ -304,7 +304,7 @@ bool WorldMapDeadzoneMidAsmHook(PPCRegister& pPadState)
{
auto pGuestPadState = (SWA::SPadState*)g_memory.Translate(pPadState.u32);
if (IsLeftStickThreshold(pGuestPadState))
if (IsDPadThreshold(pGuestPadState) || IsLeftStickThreshold(pGuestPadState))
{
g_worldMapCursorVelocityX = 0;
g_worldMapCursorVelocityY = 0;