dinput: joystick test: Improve reporting when enumerated axes/buttons/POVs don't match capabilities.
This commit is contained in:
parent
34d06a5e96
commit
27c2b56c5e
|
@ -274,9 +274,9 @@ static BOOL CALLBACK EnumJoysticks(
|
||||||
ok(hr==DI_OK,"IDirectInputDevice_EnumObjects() failed: %s\n",
|
ok(hr==DI_OK,"IDirectInputDevice_EnumObjects() failed: %s\n",
|
||||||
DXGetErrorString8(hr));
|
DXGetErrorString8(hr));
|
||||||
|
|
||||||
ok(caps.dwAxes == info.axis, "Number of enumerated axes doesn't match capabilities\n");
|
ok(caps.dwAxes == info.axis, "Number of enumerated axes (%d) doesn't match capabilities (%d)\n", info.axis, caps.dwAxes);
|
||||||
ok(caps.dwButtons == info.button, "Number of enumerated buttons doesn't match capabilities\n");
|
ok(caps.dwButtons == info.button, "Number of enumerated buttons (%d) doesn't match capabilities (%d)\n", info.button, caps.dwButtons);
|
||||||
ok(caps.dwPOVs == info.pov, "Number of enumerated POVs doesn't match capabilities\n");
|
ok(caps.dwPOVs == info.pov, "Number of enumerated POVs (%d) doesn't match capabilities (%d)\n", info.pov, caps.dwPOVs);
|
||||||
|
|
||||||
/* Set format and check limits again */
|
/* Set format and check limits again */
|
||||||
hr = IDirectInputDevice_SetDataFormat(pJoystick, &c_dfDIJoystick2);
|
hr = IDirectInputDevice_SetDataFormat(pJoystick, &c_dfDIJoystick2);
|
||||||
|
|
Loading…
Reference in New Issue