Commit f6ef943b authored by Rémi Bernon's avatar Rémi Bernon Committed by Alexandre Julliard

dinput: Also trace report buffers on immediate ReadFile success.

parent a9b3adaa
......@@ -1226,24 +1226,23 @@ static HRESULT hid_joystick_read( IDirectInputDevice8W *iface )
BOOL ret;
ret = GetOverlappedResult( impl->device, &impl->read_ovl, &count, FALSE );
if (ret && TRACE_ON(dinput))
EnterCriticalSection( &impl->base.crit );
while (ret)
{
TRACE( "read size %lu report:\n", count );
for (i = 0; i < count;)
if (TRACE_ON(dinput))
{
char buffer[256], *buf = buffer;
buf += sprintf(buf, "%08lx ", i);
do
TRACE( "iface %p, size %lu, report:\n", iface, count );
for (i = 0; i < count;)
{
buf += sprintf(buf, " %02x", (BYTE)report_buf[i] );
} while (++i % 16 && i < count);
TRACE("%s\n", buffer);
char buffer[256], *buf = buffer;
buf += sprintf(buf, "%08lx ", i);
do { buf += sprintf(buf, " %02x", (BYTE)report_buf[i] ); }
while (++i % 16 && i < count);
TRACE("%s\n", buffer);
}
}
}
EnterCriticalSection( &impl->base.crit );
while (ret)
{
count = impl->usages_count;
memset( impl->usages_buf, 0, count * sizeof(*impl->usages_buf) );
status = HidP_GetUsagesEx( HidP_Input, 0, impl->usages_buf, &count,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment