winebus.sys: Fix HID haptics waveform NONE / STOP ordinals.
commitbaa417a371d03ead4d84053dea01f78469f0b633
authorRémi Bernon <rbernon@codeweavers.com>
Mon, 14 Feb 2022 16:26:19 +0000 (14 17:26 +0100)
committerAlexandre Julliard <julliard@winehq.org>
Mon, 14 Feb 2022 20:20:42 +0000 (14 21:20 +0100)
tree00b85b72db631283564d5512ffb275377e8ce8d7
parentdb456c946b2e49addf7c63f31b0c0f9a865006d0
winebus.sys: Fix HID haptics waveform NONE / STOP ordinals.

There's some inconsistencies between the HID 1.22 specification and
HID usage names in Windows SDK headers. The headers use STOP for the
0x1001 usage name, and NULL for 0x1002, where the HID spec uses None for
the 0x1001 usage name and Stop for 0x1002.

Both are implicit waveforms anyway, and the HID usages aren't really
used anywhere, but their ordinal matters. The HID spec says that None
has ordinal 1, and Stop ordinal 2, and that Stop waveform can be used
to stop any previously started waveform. We are going to stick to that
and ignore the HID usages, although the names won't match the usages.

Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
dlls/winebus.sys/hid.c
dlls/winebus.sys/unix_private.h