mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2026-04-22 10:01:46 +00:00
fix c buttons on n64 controller [build]
This commit is contained in:
parent
e8f4748eea
commit
915655d75e
1 changed files with 3 additions and 3 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue