src/joystick/windows/SDL_windowsjoystick.c
changeset 13480 6a144eb5e1f1
parent 13422 fd6a12de91c7
child 13872 75c33f89d791
equal deleted inserted replaced
13479:26fa8708d147 13480:6a144eb5e1f1
   479         return SDL_DINPUT_JoystickOpen(joystick, joystickdevice);
   479         return SDL_DINPUT_JoystickOpen(joystick, joystickdevice);
   480     }
   480     }
   481 }
   481 }
   482 
   482 
   483 static int
   483 static int
   484 WINDOWS_JoystickRumble(SDL_Joystick * joystick, Uint16 low_frequency_rumble, Uint16 high_frequency_rumble, Uint32 duration_ms)
   484 WINDOWS_JoystickRumble(SDL_Joystick * joystick, Uint16 low_frequency_rumble, Uint16 high_frequency_rumble)
   485 {
   485 {
   486     if (joystick->hwdata->bXInputDevice) {
   486     if (joystick->hwdata->bXInputDevice) {
   487         return SDL_XINPUT_JoystickRumble(joystick, low_frequency_rumble, high_frequency_rumble, duration_ms);
   487         return SDL_XINPUT_JoystickRumble(joystick, low_frequency_rumble, high_frequency_rumble);
   488     } else {
   488     } else {
   489         return SDL_DINPUT_JoystickRumble(joystick, low_frequency_rumble, high_frequency_rumble, duration_ms);
   489         return SDL_DINPUT_JoystickRumble(joystick, low_frequency_rumble, high_frequency_rumble);
   490     }
   490     }
   491 }
   491 }
   492 
   492 
   493 static void
   493 static void
   494 WINDOWS_JoystickUpdate(SDL_Joystick * joystick)
   494 WINDOWS_JoystickUpdate(SDL_Joystick * joystick)