mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-03-22 19:02:45 +00:00
Revert "Fix axis inversion and camera look inversion"
This reverts commit 6428d6fc61
.
This commit is contained in:
parent
bbf6e8ccce
commit
7ad54af89f
1 changed files with 2 additions and 17 deletions
19
src/g_game.c
19
src/g_game.c
|
@ -935,12 +935,7 @@ static INT16 GetJoystickAxisValue(UINT8 which, joyaxis_e axissel, INT32 axisval)
|
|||
|
||||
// flip it around
|
||||
if (flp)
|
||||
{
|
||||
if (retaxis == -32768)
|
||||
retaxis = 32767;
|
||||
else
|
||||
retaxis = -retaxis;
|
||||
}
|
||||
retaxis = -retaxis;
|
||||
|
||||
return retaxis;
|
||||
}
|
||||
|
@ -948,7 +943,6 @@ static INT16 GetJoystickAxisValue(UINT8 which, joyaxis_e axissel, INT32 axisval)
|
|||
INT16 G_JoyAxis(UINT8 which, joyaxis_e axissel)
|
||||
{
|
||||
INT32 axisval;
|
||||
INT32 value;
|
||||
|
||||
// find what axis to get
|
||||
switch (axissel)
|
||||
|
@ -981,16 +975,7 @@ INT16 G_JoyAxis(UINT8 which, joyaxis_e axissel)
|
|||
return 0;
|
||||
}
|
||||
|
||||
value = GetJoystickAxisValue(which, axissel, axisval);
|
||||
if (axissel == JA_LOOK)
|
||||
{
|
||||
// Look is inverted because +Y goes _down_ in gamepads.
|
||||
if (value == -32768)
|
||||
value = 32767;
|
||||
else
|
||||
value = -value;
|
||||
}
|
||||
return value;
|
||||
return GetJoystickAxisValue(which, axissel, axisval);
|
||||
}
|
||||
|
||||
static INT16 GetAnalogInput(UINT8 which, gamecontrols_e gc)
|
||||
|
|
Loading…
Reference in a new issue