Skip to content

Commit

Permalink
Fix the default controller axes on Linux. The third axis is actually …
Browse files Browse the repository at this point in the history
…the Left Trigger, which causes the player to uncontrollably look upwards. Fixed by mapping said axis to nothing.
  • Loading branch information
nashmuhandes authored and coelckers committed Feb 4, 2024
1 parent d744f8f commit 01a462e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/common/platform/posix/sdl/i_joystick.cpp
Expand Up @@ -268,7 +268,9 @@ class SDLInputJoystick: public IJoystickConfig

friend class SDLInputJoystickManager;
};
const EJoyAxis SDLInputJoystick::DefaultAxes[5] = {JOYAXIS_Side, JOYAXIS_Forward, JOYAXIS_Pitch, JOYAXIS_Yaw, JOYAXIS_Up};

// [Nash 4 Feb 2024] seems like on Linux, the third axis is actually the Left Trigger, resulting in the player uncontrollably looking upwards.
const EJoyAxis SDLInputJoystick::DefaultAxes[5] = {JOYAXIS_Side, JOYAXIS_Forward, JOYAXIS_None, JOYAXIS_Yaw, JOYAXIS_Pitch};

class SDLInputJoystickManager
{
Expand Down

0 comments on commit 01a462e

Please sign in to comment.