remove trailing whitespace

This commit is contained in:
Nikita Leonidov 2020-04-18 21:02:10 -04:00
parent da7d21c75a
commit 9bd85109d5
3 changed files with 7 additions and 7 deletions

View File

@ -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.
*

View File

@ -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);

View File

@ -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);