From 67e21614d40793df2f4b516985144d73242c8202 Mon Sep 17 00:00:00 2001 From: JoseAaronLopezGarcia Date: Wed, 2 Oct 2024 14:45:48 +0200 Subject: [PATCH] revert back --- core/systemctrl/src/exitgame.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/core/systemctrl/src/exitgame.c b/core/systemctrl/src/exitgame.c index b505b26e..d24b16bd 100644 --- a/core/systemctrl/src/exitgame.c +++ b/core/systemctrl/src/exitgame.c @@ -127,11 +127,8 @@ static void remove_analog_input(SceCtrlData *data) { if(data == NULL) return; - // wat??? - if(!se_config.noanalog) { - CtrlSetSamplingCycle(0); - CtrlSetSamplingMode(PSP_CTRL_MODE_ANALOG); - } + data->Lx = 0xFF/2; + data->Ly = 0xFF/2; } // Gamepad Hook #1 @@ -254,6 +251,4 @@ void patchController(SceModule2* mod) HIJACK_FUNCTION(CtrlPeekBufferNegative, peek_negative, CtrlPeekBufferNegative); HIJACK_FUNCTION(CtrlReadBufferPositive, read_positive, CtrlReadBufferPositive); HIJACK_FUNCTION(CtrlReadBufferNegative, read_negative, CtrlReadBufferNegative); - HIJACK_FUNCTION(CtrlSetSamplingCycle, remove_analog_input, CtrlSetSamplingCycle); - HIJACK_FUNCTION(CtrlSetSamplingMode, remove_analog_input, CtrlSetSamplingMode); }