diff --git a/include/GLFW/glfw3.h b/include/GLFW/glfw3.h index ad0f4420..6bd06841 100644 --- a/include/GLFW/glfw3.h +++ b/include/GLFW/glfw3.h @@ -5349,15 +5349,15 @@ GLFWAPI const char* glfwGetGamepadName(int jid); GLFWAPI int glfwGetGamepadState(int jid, GLFWgamepadstate* state); /*! @brief Sets the intensity of a joystick's rumble effect. - * + * * This function sends vibration data to joysticks that implement haptic feedback * effects using two vibration motors: a low-frequency motor, and a * high-frequency motor. - * - * Vibration intensity is a value between 0.0 and 1.0 inclusive, where 0.0 is no + * + * Vibration intensity is a value between 0.0 and 1.0 inclusive, where 0.0 is no * vibration, and 1.0 is maximum vibration. It is set separately for the * joystick's low frequency and high frequency rumble motors. - * + * * If the specified joystick is not present or does not support the rumble effect, * this function will return `GLFW_FALSE` but will not generate an error. * @@ -5366,7 +5366,7 @@ GLFWAPI int glfwGetGamepadState(int jid, GLFWgamepadstate* state); * @param[in] fastMotorIntensity The high frequency vibration intensity. * @return `GLFW_TRUE` if successful, or `GLFW_FALSE` if no joystick is connected, * or the joystick does not support the rumble effect. - * + * * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref * GLFW_INVALID_ENUM. * diff --git a/src/win32_joystick.c b/src/win32_joystick.c index b9c28f02..affd7eae 100644 --- a/src/win32_joystick.c +++ b/src/win32_joystick.c @@ -759,7 +759,7 @@ int _glfwPlatformSetJoystickRumble(_GLFWjoystick* js, float slowMotorIntensity, if (js->win32.device) return GLFW_FALSE; - + ZeroMemory(&effect, sizeof(XINPUT_VIBRATION)); effect.wLeftMotorSpeed = (WORD)(65535.0f * slowMotorIntensity); diff --git a/tests/joysticks.c b/tests/joysticks.c index 4c2fd28f..17bd0427 100644 --- a/tests/joysticks.c +++ b/tests/joysticks.c @@ -334,7 +334,7 @@ int main(void) nk_layout_row_dynamic(nk, 30, 2); nk_label(nk, "Slow rumble motor intensity", NK_TEXT_LEFT); nk_label(nk, "Fast rumble motor intensity", NK_TEXT_LEFT); - + nk_layout_row_dynamic(nk, 30, 2); slowRumble[i] = nk_slide_float(nk, 0.0f, slowRumble[i], 1.0f, 0.05f); fastRumble[i] = nk_slide_float(nk, 0.0f, fastRumble[i], 1.0f, 0.05f);