Rémi Bernon : xinput1_3/tests: Add some HID report tests.

Alexandre Julliard julliard at winehq.org
Wed Aug 11 16:42:16 CDT 2021


Module: wine
Branch: master
Commit: 7a571127e4fb5e3eba3f382446f4a82ef5728b90
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=7a571127e4fb5e3eba3f382446f4a82ef5728b90

Author: Rémi Bernon <rbernon at codeweavers.com>
Date:   Tue Aug 10 13:22:16 2021 +0200

xinput1_3/tests: Add some HID report tests.

This adds tests to validate the bogus HID devices exposed native XInput
driver. Interactive tests are also included to validate the HID report
values, and more specifically the weird combined triggers, which is
currently not implemented correctly in Wine.

Some third-party libraries, such as SDL, are known to rely on this bogus
HID devices and hardcode the expected report structure.

This has been tested on Windows 10 with XBox 360 controllers as well
as Xbox One S controllers.

The latter are detected as 045e:02ea on Linux, but as 045e:02ff on
Windows for some reason, and their descriptor seems a little bit
different.

Their exposed HID device also doesn't seem to work at all and ReadFile
never succeeds, so the interactive tests are skipped for these devices.

Signed-off-by: Rémi Bernon <rbernon at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/xinput1_3/tests/Makefile.in |   2 +-
 dlls/xinput1_3/tests/xinput.c    | 516 +++++++++++++++++++++++++++++++++++++++
 2 files changed, 517 insertions(+), 1 deletion(-)

Diff:   https://source.winehq.org/git/wine.git/?a=commitdiff;h=7a571127e4fb5e3eba3f382446f4a82ef5728b90



More information about the wine-cvs mailing list