mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2024-12-20 22:16:49 +01:00
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_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;
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user