Sam Lantinga 4 недель назад
Родитель
Сommit
ca7788cd9f
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      src/joystick/hidapi/SDL_hidapi_steam_hori.c

+ 1 - 1
src/joystick/hidapi/SDL_hidapi_steam_hori.c

@@ -203,7 +203,7 @@ static void HIDAPI_DriverSteamHori_HandleStatePacket(SDL_Joystick *joystick, SDL
         return;
     }
 
-    #define READ_STICK_AXIS(offset) \
+#define READ_STICK_AXIS(offset) \
     (data[offset] == 0x80 ? 0 : (Sint16)HIDAPI_RemapVal((float)((int)data[offset] - 0x80), -0x80, 0xff - 0x80, SDL_MIN_SINT16, SDL_MAX_SINT16))
     {
         axis = READ_STICK_AXIS(1);