From 915655d75e6e5535f6b6df9211bb04774e2fb58d Mon Sep 17 00:00:00 2001 From: Isaac0-dev <62234577+Isaac0-dev@users.noreply.github.com> Date: Thu, 17 Apr 2025 14:04:48 +1000 Subject: [PATCH] fix c buttons on n64 controller [build] --- src/pc/controller/controller_sdl2.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pc/controller/controller_sdl2.c b/src/pc/controller/controller_sdl2.c index 1cd98f301..6b7b4c575 100644 --- a/src/pc/controller/controller_sdl2.c +++ b/src/pc/controller/controller_sdl2.c @@ -247,11 +247,11 @@ static void controller_sdl_read(OSContPad *pad) { } if (axis_count >= 4) { rightx = SDL_JoystickGetAxis(sdl_joystick, 2); - righty = SDL_JoystickGetAxis(sdl_joystick, 3); + righty = SDL_JoystickGetAxis(sdl_joystick, 5); // Specific to N64 controller } if (axis_count >= 6) { - ltrig = SDL_JoystickGetAxis(sdl_joystick, 4); - rtrig = SDL_JoystickGetAxis(sdl_joystick, 5); + ltrig = SDL_JoystickGetAxis(sdl_joystick, 3); + rtrig = SDL_JoystickGetAxis(sdl_joystick, 4); } int button_count = SDL_JoystickNumButtons(sdl_joystick);