Explorar o código

Use SDL_LogDebug() for dumping HID packets

Sam Lantinga hai 2 meses
pai
achega
ef416e84a1
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/joystick/hidapi/SDL_hidapijoystick.c

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

@@ -157,7 +157,7 @@ void HIDAPI_DumpPacket(const char *prefix, const Uint8 *data, int size)
         current_len += SDL_snprintf(&buffer[current_len], length - current_len, " 0x%.2x", data[i]);
     }
     SDL_strlcat(buffer, "\n", length);
-    SDL_Log("%s", buffer);
+    SDL_LogDebug(SDL_LOG_CATEGORY_INPUT, "%s", buffer);
     SDL_free(buffer);
 }