Explorar el Código

fix wrong index in HandleStatePacket with flydigi controller (#13819)

wankey hace 6 meses
padre
commit
6176235a90
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/joystick/hidapi/SDL_hidapi_flydigi.c

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

@@ -323,7 +323,7 @@ static void HIDAPI_DriverFlydigi_HandleStatePacket(SDL_Joystick *joystick, SDL_D
 {
 {
     Sint16 axis;
     Sint16 axis;
     Uint64 timestamp = SDL_GetTicksNS();
     Uint64 timestamp = SDL_GetTicksNS();
-    if (data[0] != 0x04 && data[0] != 0xFE) {
+    if (data[0] != 0x04 || data[1] != 0xFE) {
         // We don't know how to handle this report
         // We don't know how to handle this report
         return;
         return;
     }
     }