Don't use RAWINPUT joystick driver on Windows XP
Fixes https://github.com/libsdl-org/SDL/issues/6400
(cherry-picked from commit 5025f24033)
This commit is contained in:
1 parent
d1dcbfe9e9
commit
08f83f953c
1 file changed
+5
@@ -874,6 +874,11 @@ RAWINPUT_JoystickInit(void)
|
|||||||
|
|
||||||
SDL_assert(!SDL_RAWINPUT_inited);
|
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)) {
|
if (!SDL_GetHintBoolean(SDL_HINT_JOYSTICK_RAWINPUT, SDL_TRUE)) {
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user