Browse Source

PSP/Joystick: fix formatting

(cherry picked from commit c17d2246fb0ed2fa5b16acbf1f2b3aa7e5ddd3cf)
rofl0r 1 year ago
parent
commit
12245e4c75
1 changed files with 3 additions and 1 deletions
  1. 3 1
      src/joystick/psp/SDL_sysjoystick.c

+ 3 - 1
src/joystick/psp/SDL_sysjoystick.c

@@ -209,7 +209,9 @@ static void PSP_JoystickUpdate(SDL_Joystick *joystick)
     static unsigned char old_x = 0, old_y = 0;
     static unsigned char old_x = 0, old_y = 0;
     Uint64 timestamp = SDL_GetTicksNS();
     Uint64 timestamp = SDL_GetTicksNS();
 
 
-    if(sceCtrlPeekBufferPositive(&pad, 1) <= 0) return;
+    if (sceCtrlPeekBufferPositive(&pad, 1) <= 0) {
+        return;
+    }
     buttons = pad.Buttons;
     buttons = pad.Buttons;
     x = pad.Lx;
     x = pad.Lx;
     y = pad.Ly;
     y = pad.Ly;