mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2024-12-20 22:16:49 +01:00
Added HIDAPI rumble debug info
This commit is contained in:
parent
e2f46ed8ef
commit
d0b87fede6
@ -77,7 +77,10 @@ static int SDL_HIDAPI_RumbleThread(void *data)
|
|||||||
if (request) {
|
if (request) {
|
||||||
SDL_LockMutex(request->device->dev_lock);
|
SDL_LockMutex(request->device->dev_lock);
|
||||||
if (request->device->dev) {
|
if (request->device->dev) {
|
||||||
hid_write( request->device->dev, request->data, request->size );
|
#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);
|
SDL_UnlockMutex(request->device->dev_lock);
|
||||||
(void)SDL_AtomicDecRef(&request->device->rumble_pending);
|
(void)SDL_AtomicDecRef(&request->device->rumble_pending);
|
||||||
|
Loading…
Reference in New Issue
Block a user