Skip to content

Commit

Permalink
Assume Xbox gamepad layout on old SDL versions
Browse files Browse the repository at this point in the history
  • Loading branch information
andrei-drexler committed Jul 31, 2024
1 parent b346888 commit 9766336
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Quake/in_sdl.c
Original file line number Diff line number Diff line change
Expand Up @@ -361,6 +361,9 @@ static qboolean IN_UseController (int device_index)
joy_active_type = GAMEPAD_NINTENDO;
break;
}
#else
// No controller type info (old SDL headers), assume Xbox-compatible
joy_active_type = GAMEPAD_XBOX;
#endif // SDL_VERSION_ATLEAST(2, 0, 12)

#if SDL_VERSION_ATLEAST(2, 0, 14)
Expand Down

0 comments on commit 9766336

Please sign in to comment.