From a83fae61807ed984da6a459b0c18d654881976f2 Mon Sep 17 00:00:00 2001 From: Eric Warmenhoven Date: Thu, 18 Jan 2024 00:14:48 -0500 Subject: [PATCH] Disable mFI secondary_joypad behavior Some controllers show up as both HID and mFI. In that case we probably want to let the user pick which driver to use, rather than balance across them. This fixes issues with the analog stick moving in the wrong direction on the y axis. --- input/input_driver.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/input/input_driver.c b/input/input_driver.c index 177d5df2b86..3e44dab9375 100644 --- a/input/input_driver.c +++ b/input/input_driver.c @@ -3717,7 +3717,7 @@ void joypad_driver_reinit(void *data, const char *joypad_driver_name) #endif if (!input_driver_st.primary_joypad) input_driver_st.primary_joypad = input_joypad_init_driver(joypad_driver_name, data); -#ifdef HAVE_MFI +#if 0 if (!input_driver_st.secondary_joypad) input_driver_st.secondary_joypad = input_joypad_init_driver("mfi", data); #endif @@ -3800,7 +3800,7 @@ void input_driver_init_joypads(void) input_driver_st.primary_joypad = input_joypad_init_driver( settings->arrays.input_joypad_driver, input_driver_st.current_data); -#ifdef HAVE_MFI +#if 0 if (!input_driver_st.secondary_joypad) input_driver_st.secondary_joypad = input_joypad_init_driver( "mfi",