Browse Source

SInput Serial MAC Fix (#13388)

* Resolve MAC address Order
mitchellcairns 2 tháng trước cách đây
mục cha
commit
34d9db3657
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/joystick/hidapi/SDL_hidapi_sinput.c

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

@@ -316,7 +316,7 @@ static void ProcessSDLFeaturesResponse(SDL_HIDAPI_Device *device, Uint8 *data)
     // Get device Serial - MAC address
     char serial[18];
     (void)SDL_snprintf(serial, sizeof(serial), "%.2x-%.2x-%.2x-%.2x-%.2x-%.2x",
-                       data[23], data[22], data[21], data[20], data[19], data[18]);
+                       data[18], data[19], data[20], data[21], data[22], data[23]);
 #if defined(DEBUG_SINPUT_INIT)
     SDL_Log("Serial num: %s", serial);
 #endif