Bruno Jesus : dinput/tests: Test for DIDOI_ASPECTPOSITION on joystick axes.
Alexandre Julliard
julliard at winehq.org
Wed Aug 17 10:24:23 CDT 2016
Module: wine
Branch: master
Commit: 03181015c372588ae7950555207416f584b21283
URL: http://source.winehq.org/git/wine.git/?a=commit;h=03181015c372588ae7950555207416f584b21283
Author: Bruno Jesus <00cpxxx at gmail.com>
Date: Tue Aug 16 17:28:38 2016 -0300
dinput/tests: Test for DIDOI_ASPECTPOSITION on joystick axes.
Signed-off-by: Bruno Jesus <00cpxxx at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/dinput/tests/joystick.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/dlls/dinput/tests/joystick.c b/dlls/dinput/tests/joystick.c
index 4882744..35ec2d9 100644
--- a/dlls/dinput/tests/joystick.c
+++ b/dlls/dinput/tests/joystick.c
@@ -142,6 +142,10 @@ static BOOL CALLBACK EnumAxes(const DIDEVICEOBJECTINSTANCEA *pdidoi, void *pCont
hr = IDirectInputDevice_SetProperty(info->pJoystick, DIPROP_DEADZONE, &dipdw.diph);
ok(hr==DI_OK,"IDirectInputDevice_SetProperty() failed: %08x\n", hr);
+ /* ensure DIDOI_ASPECTPOSITION is set for axes objects */
+ ok(pdidoi->dwFlags & DIDOI_ASPECTPOSITION, "Missing DIDOI_ASPECTPOSITION, flags are 0x%x\n",
+ pdidoi->dwFlags);
+
info->axis++;
} else if (IsEqualIID(&pdidoi->guidType, &GUID_POV))
info->pov++;
More information about the wine-cvs
mailing list