dinput8/tests: Debug device information during enumeration callback.

Signed-off-by: Bruno Jesus <00cpxxx@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Bruno Jesus 2016-08-14 15:57:36 -03:00 committed by Alexandre Julliard
parent 58937117fb
commit d19ff2d828
1 changed files with 16 additions and 0 deletions

View File

@ -361,6 +361,22 @@ static BOOL CALLBACK enum_devices_callback(const DIDEVICEINSTANCEA *instance, vo
{ {
struct enum_devices_test *enum_test = context; struct enum_devices_test *enum_test = context;
trace("---- Device Information ----\n"
"Product Name : %s\n"
"Instance Name : %s\n"
"devType : 0x%08x\n"
"GUID Product : %s\n"
"GUID Instance : %s\n"
"HID Page : 0x%04x\n"
"HID Usage : 0x%04x\n",
instance->tszProductName,
instance->tszInstanceName,
instance->dwDevType,
wine_dbgstr_guid(&instance->guidProduct),
wine_dbgstr_guid(&instance->guidInstance),
instance->wUsagePage,
instance->wUsage);
enum_test->device_count++; enum_test->device_count++;
return enum_test->return_value; return enum_test->return_value;
} }