mirror of https://github.com/encounter/SDL.git
Fixed Windows build
This commit is contained in:
parent
0500c04468
commit
e0018d0869
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue