Added HIDAPI rumble debug info

main
Sam Lantinga 2021-01-14 23:49:27 -08:00
parent e2f46ed8ef
commit d0b87fede6
1 changed files with 4 additions and 1 deletions

View File

@ -77,6 +77,9 @@ static int SDL_HIDAPI_RumbleThread(void *data)
if (request) {
SDL_LockMutex(request->device->dev_lock);
if (request->device->dev) {
#ifdef DEBUG_RUMBLE
HIDAPI_DumpPacket("Rumble packet: size = %d", request->data, request->size);
#endif
hid_write(request->device->dev, request->data, request->size);
}
SDL_UnlockMutex(request->device->dev_lock);