Rémi Bernon : hidclass.sys: Factor HIDP_BUTTON_CAPS with HIDP_VALUE_CAPS.

Alexandre Julliard julliard at winehq.org
Fri Jun 4 14:32:28 CDT 2021


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

Author: Rémi Bernon <rbernon at codeweavers.com>
Date:   Fri Jun  4 11:30:35 2021 +0200

hidclass.sys: Factor HIDP_BUTTON_CAPS with HIDP_VALUE_CAPS.

Buttons are really just values with BitSize == 1, and having a union for
that makes the code more complicated than it needs.

We'll simplify the code a lot using HIDP_VALUE_CAPS everywhere, as the
two structure types are compatible.

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

---

 dlls/hid/hidp.c                |  66 ++++++++--------
 dlls/hidclass.sys/descriptor.c | 176 ++++++++++++++++++++---------------------
 dlls/user32/rawinput.c         |   2 +
 include/wine/hid.h             |  43 +++++++++-
 4 files changed, 162 insertions(+), 125 deletions(-)

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



More information about the wine-cvs mailing list