Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/source/build/src/sdlayer.cpp b/source/build/src/sdlayer.cpp
- index e3671a099..3e4aa810b 100644
- --- a/source/build/src/sdlayer.cpp
- +++ b/source/build/src/sdlayer.cpp
- @@ -962,9 +962,11 @@ void joyScanDevices()
- inputdevices |= DEV_JOYSTICK;
- +#if SDL_MINOR_VERSION > 0 || SDL_PATCHLEVEL >= 9
- if (!SDL_GameControllerRumble(controller, 0xc000, 0xc000, 10))
- joystick.hasRumble = 1;
- else buildprintf("%s\n", SDL_GetError());
- +#endif
- return;
- }
- @@ -1008,7 +1010,7 @@ void joyScanDevices()
- SDL_JoystickEventState(SDL_ENABLE);
- inputdevices |= DEV_JOYSTICK;
- -#if SDL_MAJOR_VERSION >= 2
- +#if SDL_MAJOR_VERSION >= 2 && (SDL_MINOR_VERSION > 0 || SDL_PATCHLEVEL >= 9)
- if (!SDL_JoystickRumble(joydev, 0xffff, 0xffff, 200))
- joystick.hasRumble = 1;
- else buildprintf("%s\n", SDL_GetError());
- @@ -2540,6 +2542,7 @@ int32_t handleevents(void)
- int32_t rv;
- +#if SDL_MAJOR_VERSION >= 2 && (SDL_MINOR_VERSION > 0 || SDL_PATCHLEVEL >= 9)
- if (joystick.hasRumble)
- {
- if (joystick.rumbleLow || joystick.rumbleHigh)
- @@ -2547,6 +2550,7 @@ int32_t handleevents(void)
- joystick.rumbleTime = joystick.rumbleLow = joystick.rumbleHigh = 0;
- }
- +#endif
- if (g_mouseBits & 2 && osd->flags & OSD_CAPTURE && SDL_HasClipboardText())
- {
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement