src/joystick/darwin/SDL_sysjoystick.c
changeset 2295 dbc6d1893869
parent 2287 15a242fca6c4
child 2632 9e7f58b1b255
child 2698 e1da92da346c
child 2713 0906692aa6a4
--- a/src/joystick/darwin/SDL_sysjoystick.c	Thu Jan 03 06:07:30 2008 +0000
+++ b/src/joystick/darwin/SDL_sysjoystick.c	Tue Jan 08 00:10:46 2008 +0000
@@ -820,9 +820,9 @@
 
         range = (element->max - element->min + 1);
         value = HIDGetElementValue(device, element) - element->min;
-        if (range == 4)  /* 4 position hatswitch - scale up value */
+        if (range == 4)         /* 4 position hatswitch - scale up value */
             value *= 2;
-        else if (range != 8)     /* Neither a 4 nor 8 positions - fall back to default position (centered) */
+        else if (range != 8)    /* Neither a 4 nor 8 positions - fall back to default position (centered) */
             value = -1;
         switch (value) {
         case 0: