dinput/tests: Improve controller debug information.

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:12:54 -03:00 committed by Alexandre Julliard
parent e3b783174d
commit f1b782bfc8
1 changed files with 15 additions and 1 deletions

View File

@ -203,7 +203,21 @@ static BOOL CALLBACK EnumJoysticks(const DIDEVICEINSTANCEA *lpddi, void *pvRef)
if (hr!=DI_OK) if (hr!=DI_OK)
goto DONE; goto DONE;
trace("---- %s ----\n", lpddi->tszProductName); trace("---- Controller 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",
lpddi->tszProductName,
lpddi->tszInstanceName,
lpddi->dwDevType,
wine_dbgstr_guid(&lpddi->guidProduct),
wine_dbgstr_guid(&lpddi->guidInstance),
lpddi->wUsagePage,
lpddi->wUsage);
/* Test for joystick ID property */ /* Test for joystick ID property */
ZeroMemory(&dipw, sizeof(dipw)); ZeroMemory(&dipw, sizeof(dipw));