mirror of
https://github.com/glfw/glfw.git
synced 2025-10-02 21:00:57 +00:00
fix mixed declarations error in win32_joystick.c
This commit is contained in:
parent
4d5062d654
commit
ca2a6c11a1
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user