Skip to content

Commit

Permalink
Don't use RAWINPUT joystick driver on Windows XP
Browse files Browse the repository at this point in the history
Fixes #6400
(cherry-picked from commit 5025f24)
  • Loading branch information
slouken authored and sezero committed Oct 24, 2022
1 parent d1dcbfe commit 08f83f9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/joystick/windows/SDL_rawinputjoystick.c
Expand Up @@ -874,6 +874,11 @@ RAWINPUT_JoystickInit(void)

SDL_assert(!SDL_RAWINPUT_inited);

if (!WIN_IsWindowsVistaOrGreater()) {
/* According to bug 6400, this doesn't work on Windows XP */
return -1;
}

if (!SDL_GetHintBoolean(SDL_HINT_JOYSTICK_RAWINPUT, SDL_TRUE)) {
return -1;
}
Expand Down

0 comments on commit 08f83f9

Please sign in to comment.