diff --git a/deps/mingw/xinput.h b/deps/mingw/xinput.h index 4480cc44f..d3ca726ce 100644 --- a/deps/mingw/xinput.h +++ b/deps/mingw/xinput.h @@ -182,8 +182,8 @@ typedef struct _XINPUT_STATE { */ typedef struct _XINPUT_VIBRATION { - WORD wLeftMotorIntensity; - WORD wRightMotorIntensity; + WORD wLeftMotorSpeed; + WORD wRightMotorSpeed; } XINPUT_VIBRATION, *PXINPUT_VIBRATION; /* diff --git a/src/win32_joystick.c b/src/win32_joystick.c index dd8b2a680..62b78f560 100644 --- a/src/win32_joystick.c +++ b/src/win32_joystick.c @@ -761,8 +761,8 @@ int _glfwPlatformSetJoystickRumble(_GLFWjoystick* js, float slowMotorIntensity, XINPUT_VIBRATION effect; ZeroMemory(&effect, sizeof(XINPUT_VIBRATION)); - effect.wLeftMotorIntensity = (WORD)(65535.0f * slowMotorIntensity); - effect.wRightMotorIntensity = (WORD)(65535.0f * fastMotorIntensity); + effect.wLeftMotorSpeed = (WORD)(65535.0f * slowMotorIntensity); + effect.wRightMotorSpeed = (WORD)(65535.0f * fastMotorIntensity); return (int) (XInputSetState(js->win32.index, &effect) == ERROR_SUCCESS); } \ No newline at end of file