From ca640f335d4b230140a33f48c314ecaec5dcd901 Mon Sep 17 00:00:00 2001 From: notaz Date: Sat, 4 Nov 2023 02:06:57 +0200 Subject: [PATCH] adjust the deadzone hack libretro/pcsx_rearmed#792 --- libpcsxcore/plugins.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/libpcsxcore/plugins.c b/libpcsxcore/plugins.c index a6171879..d44442b0 100644 --- a/libpcsxcore/plugins.c +++ b/libpcsxcore/plugins.c @@ -626,8 +626,9 @@ static void adjust_analog(unsigned char *b) { // ff8 hates 0x80 for whatever reason (broken in 2d area menus), // or is this caused by something else we do wrong?? - if (b[6] == 0x80) - b[6] = 0x7f; + // Also S.C.A.R.S. treats 0x7f as turning left. + if (b[6] == 0x7f || b[6] == 0x80) + b[6] = 0x81; } // Build response for 0x42 request Pad in port -- 2.39.2