winebus.sys: Fix some report descriptors.
Signed-off-by: Andrew Eikum <aeikum@codeweavers.com> Signed-off-by: Aric Stewart <aric@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
db3864e5b3
commit
3039eeb72e
|
@ -147,7 +147,7 @@ static const BYTE REPORT_AXIS_TAIL[] = {
|
||||||
0x95, 0x00, /* REPORT_COUNT (?) */
|
0x95, 0x00, /* REPORT_COUNT (?) */
|
||||||
0x81, 0x02, /* INPUT (Data,Var,Abs) */
|
0x81, 0x02, /* INPUT (Data,Var,Abs) */
|
||||||
};
|
};
|
||||||
#define IDX_ABS_AXIS_COUNT 15
|
#define IDX_ABS_AXIS_COUNT 23
|
||||||
|
|
||||||
static const BYTE CONTROLLER_BUTTONS[] = {
|
static const BYTE CONTROLLER_BUTTONS[] = {
|
||||||
0x05, 0x09, /* USAGE_PAGE (Button) */
|
0x05, 0x09, /* USAGE_PAGE (Button) */
|
||||||
|
|
|
@ -36,15 +36,15 @@ static const BYTE REPORT_BUTTONS[] = {
|
||||||
0x29, 0x03, /* USAGE_MAXIMUM (Button 3) */
|
0x29, 0x03, /* USAGE_MAXIMUM (Button 3) */
|
||||||
0x15, 0x00, /* LOGICAL_MINIMUM (0) */
|
0x15, 0x00, /* LOGICAL_MINIMUM (0) */
|
||||||
0x25, 0x01, /* LOGICAL_MAXIMUM (1) */
|
0x25, 0x01, /* LOGICAL_MAXIMUM (1) */
|
||||||
0x35, 0x00, /* LOGICAL_MINIMUM (0) */
|
0x35, 0x00, /* PHYSICAL_MINIMUM (0) */
|
||||||
0x45, 0x01, /* LOGICAL_MAXIMUM (1) */
|
0x45, 0x01, /* PHYSICAL_MAXIMUM (1) */
|
||||||
0x95, 0x03, /* REPORT_COUNT (3) */
|
0x95, 0x03, /* REPORT_COUNT (3) */
|
||||||
0x75, 0x01, /* REPORT_SIZE (1) */
|
0x75, 0x01, /* REPORT_SIZE (1) */
|
||||||
0x81, 0x02, /* INPUT (Data,Var,Abs) */
|
0x81, 0x02, /* INPUT (Data,Var,Abs) */
|
||||||
};
|
};
|
||||||
#define IDX_BUTTON_MIN_USAGE 3
|
#define IDX_BUTTON_MIN_USAGE 3
|
||||||
#define IDX_BUTTON_MAX_USAGE 5
|
#define IDX_BUTTON_MAX_USAGE 5
|
||||||
#define IDX_BUTTON_COUNT 11
|
#define IDX_BUTTON_COUNT 15
|
||||||
|
|
||||||
static const BYTE REPORT_PADDING[] = {
|
static const BYTE REPORT_PADDING[] = {
|
||||||
0x95, 0x03, /* REPORT_COUNT (3) */
|
0x95, 0x03, /* REPORT_COUNT (3) */
|
||||||
|
|
Loading…
Reference in New Issue