Fixed Windows build

This commit is contained in:
Sam Lantinga 2020-11-12 14:23:56 -08:00
parent 0500c04468
commit e0018d0869
2 changed files with 5 additions and 6 deletions

View File

@ -728,13 +728,12 @@ EnumJoystickPresentCallback(const DIDEVICEINSTANCE * pdidInstance, VOID * pConte
SDL_bool
SDL_DINPUT_JoystickPresent(Uint16 vendor, Uint16 product, Uint16 version)
{
if (dinput == NULL)
{
return SDL_FALSE;
}
EnumJoystickPresentData data;
if (dinput == NULL) {
return SDL_FALSE;
}
data.vendor = vendor;
data.product = product;
data.version = version;

View File

@ -620,7 +620,7 @@ RAWINPUT_JoystickRumbleTriggers(SDL_Joystick * joystick, Uint16 left_rumble, Uin
struct joystick_hwdata *hwdata = joystick->hwdata;
SDL_RAWINPUT_Device *device = hwdata->device;
return device->driver->RumbleJoystickTriggers(&device->hiddevice, joystick, low_frequency_rumble, high_frequency_rumble);
return device->driver->RumbleJoystickTriggers(&device->hiddevice, joystick, left_rumble, right_rumble);
}
static SDL_bool