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_bool
SDL_DINPUT_JoystickPresent(Uint16 vendor, Uint16 product, Uint16 version) SDL_DINPUT_JoystickPresent(Uint16 vendor, Uint16 product, Uint16 version)
{ {
if (dinput == NULL) EnumJoystickPresentData data;
{
if (dinput == NULL) {
return SDL_FALSE; return SDL_FALSE;
} }
EnumJoystickPresentData data;
data.vendor = vendor; data.vendor = vendor;
data.product = product; data.product = product;
data.version = version; data.version = version;

View File

@ -620,7 +620,7 @@ RAWINPUT_JoystickRumbleTriggers(SDL_Joystick * joystick, Uint16 left_rumble, Uin
struct joystick_hwdata *hwdata = joystick->hwdata; struct joystick_hwdata *hwdata = joystick->hwdata;
SDL_RAWINPUT_Device *device = hwdata->device; 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 static SDL_bool