Sfoglia il codice sorgente

Cleanup

Replaces tabs with spaces.  Makes code idiomatic.  Adds credit.

Closes #1043.
Camilla Löwy 8 anni fa
parent
commit
e55e616f1f
2 ha cambiato i file con 6 aggiunte e 7 eliminazioni
  1. 1 0
      README.md
  2. 5 7
      src/win32_joystick.c

+ 1 - 0
README.md

@@ -259,6 +259,7 @@ skills.
  - Martin Capitanio
  - David Carlier
  - Chi-kwan Chan
+ - Michał Cichoń
  - Lambert Clara
  - Andrew Corrigan
  - Noel Cower

+ 5 - 7
src/win32_joystick.c

@@ -576,15 +576,13 @@ void _glfwDetectJoystickConnectionWin32(void)
 void _glfwDetectJoystickDisconnectionWin32(void)
 {
     int jid;
-    _GLFWjoystick* js;
-
-	for (jid = 0;  jid <= GLFW_JOYSTICK_LAST;  jid++)
-	{
-        js = &_glfw.joysticks[jid];
 
+    for (jid = 0;  jid <= GLFW_JOYSTICK_LAST;  jid++)
+    {
+        _GLFWjoystick* js = _glfw.joysticks + jid;
         if (js->present)
-		    _glfwPlatformPollJoystick(js, _GLFW_POLL_PRESENCE);
-	}
+            _glfwPlatformPollJoystick(js, _GLFW_POLL_PRESENCE);
+    }
 }