Skip to content

Commit

Permalink
revert back
Browse files Browse the repository at this point in the history
  • Loading branch information
JoseAaronLopezGarcia committed Oct 2, 2024
1 parent cbd3eb0 commit 67e2161
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions core/systemctrl/src/exitgame.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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);
}

0 comments on commit 67e2161

Please sign in to comment.