mirror of
https://github.com/glfw/glfw.git
synced 2025-10-02 21:00:57 +00:00
fix typo
This commit is contained in:
parent
8fe5ce9335
commit
4d5062d654
4
deps/mingw/xinput.h
vendored
4
deps/mingw/xinput.h
vendored
@ -182,8 +182,8 @@ typedef struct _XINPUT_STATE {
|
||||
*/
|
||||
|
||||
typedef struct _XINPUT_VIBRATION {
|
||||
WORD wLeftMotorIntensity;
|
||||
WORD wRightMotorIntensity;
|
||||
WORD wLeftMotorSpeed;
|
||||
WORD wRightMotorSpeed;
|
||||
} XINPUT_VIBRATION, *PXINPUT_VIBRATION;
|
||||
|
||||
/*
|
||||
|
@ -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);
|
||||
}
|
Loading…
Reference in New Issue
Block a user