fix mixed declarations error in win32_joystick.c

This commit is contained in:
Nikita 2020-04-18 23:43:00 -04:00
parent 4d5062d654
commit ca2a6c11a1

View File

@ -755,10 +755,11 @@ void _glfwPlatformUpdateGamepadGUID(char* guid)
int _glfwPlatformSetJoystickRumble(_GLFWjoystick* js, float slowMotorIntensity, float fastMotorIntensity)
{
XINPUT_VIBRATION effect;
if (js->win32.device)
return GLFW_FALSE;
XINPUT_VIBRATION effect;
ZeroMemory(&effect, sizeof(XINPUT_VIBRATION));
effect.wLeftMotorSpeed = (WORD)(65535.0f * slowMotorIntensity);