Andrew Eikum : winebus.sys: Fix some report descriptors.

Alexandre Julliard julliard at winehq.org
Mon May 6 15:38:49 CDT 2019


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

Author: Andrew Eikum <aeikum at codeweavers.com>
Date:   Mon May  6 08:45:59 2019 -0500

winebus.sys: Fix some report descriptors.

Signed-off-by: Andrew Eikum <aeikum at codeweavers.com>
Signed-off-by: Aric Stewart <aric at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/winebus.sys/bus_sdl.c    | 2 +-
 dlls/winebus.sys/controller.h | 6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/dlls/winebus.sys/bus_sdl.c b/dlls/winebus.sys/bus_sdl.c
index b774df7..724cd78 100644
--- a/dlls/winebus.sys/bus_sdl.c
+++ b/dlls/winebus.sys/bus_sdl.c
@@ -147,7 +147,7 @@ static const BYTE REPORT_AXIS_TAIL[] = {
     0x95, 0x00,         /* REPORT_COUNT (?) */
     0x81, 0x02,         /* INPUT (Data,Var,Abs) */
 };
-#define IDX_ABS_AXIS_COUNT 15
+#define IDX_ABS_AXIS_COUNT 23
 
 static const BYTE CONTROLLER_BUTTONS[] = {
     0x05, 0x09, /* USAGE_PAGE (Button) */
diff --git a/dlls/winebus.sys/controller.h b/dlls/winebus.sys/controller.h
index 9546fe9..80e9c78 100644
--- a/dlls/winebus.sys/controller.h
+++ b/dlls/winebus.sys/controller.h
@@ -36,15 +36,15 @@ static const BYTE REPORT_BUTTONS[] = {
     0x29, 0x03, /* USAGE_MAXIMUM (Button 3) */
     0x15, 0x00, /* LOGICAL_MINIMUM (0) */
     0x25, 0x01, /* LOGICAL_MAXIMUM (1) */
-    0x35, 0x00, /* LOGICAL_MINIMUM (0) */
-    0x45, 0x01, /* LOGICAL_MAXIMUM (1) */
+    0x35, 0x00, /* PHYSICAL_MINIMUM (0) */
+    0x45, 0x01, /* PHYSICAL_MAXIMUM (1) */
     0x95, 0x03, /* REPORT_COUNT (3) */
     0x75, 0x01, /* REPORT_SIZE (1) */
     0x81, 0x02, /* INPUT (Data,Var,Abs) */
 };
 #define IDX_BUTTON_MIN_USAGE 3
 #define IDX_BUTTON_MAX_USAGE 5
-#define IDX_BUTTON_COUNT 11
+#define IDX_BUTTON_COUNT 15
 
 static const BYTE REPORT_PADDING[] = {
     0x95, 0x03, /* REPORT_COUNT (3) */




More information about the wine-cvs mailing list