Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
b2ba9737
Commit
b2ba9737
authored
Nov 19, 2021
by
Rémi Bernon
Committed by
Alexandre Julliard
Nov 19, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winebus.sys: Remove effect gain from the crafted PID reports.
Signed-off-by:
Rémi Bernon
<
rbernon@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
e9c3c494
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
9 deletions
+0
-9
hid.c
dlls/winebus.sys/hid.c
+0
-8
unix_private.h
dlls/winebus.sys/unix_private.h
+0
-1
No files found.
dlls/winebus.sys/hid.c
View file @
b2ba9737
...
...
@@ -440,7 +440,6 @@ struct pid_effect_update
UINT16
trigger_repeat_interval
;
UINT16
sample_period
;
UINT16
start_delay
;
BYTE
gain
;
BYTE
trigger_button
;
BYTE
enable_bits
;
BYTE
direction
[
2
];
...
...
@@ -851,12 +850,6 @@ BOOL hid_device_add_physical(struct unix_device *iface, USAGE *usages, USHORT co
UNIT_EXPONENT
(
1
,
0
),
UNIT
(
1
,
0
),
/* None */
USAGE
(
1
,
PID_USAGE_GAIN
),
LOGICAL_MAXIMUM
(
1
,
0x7f
),
REPORT_SIZE
(
1
,
8
),
REPORT_COUNT
(
1
,
1
),
OUTPUT
(
1
,
Data
|
Var
|
Abs
),
USAGE
(
1
,
PID_USAGE_TRIGGER_BUTTON
),
LOGICAL_MAXIMUM
(
2
,
state
->
button_count
),
REPORT_SIZE
(
1
,
8
),
...
...
@@ -1093,7 +1086,6 @@ static void hid_device_set_output_report(struct unix_device *iface, HID_XFER_PAC
params
->
trigger_repeat_interval
=
report
->
trigger_repeat_interval
;
params
->
sample_period
=
report
->
sample_period
;
params
->
start_delay
=
report
->
start_delay
;
params
->
gain
=
report
->
gain
;
params
->
trigger_button
=
report
->
trigger_button
==
0xff
?
0
:
report
->
trigger_button
;
params
->
axis_enabled
[
0
]
=
(
report
->
enable_bits
&
1
)
!=
0
;
params
->
axis_enabled
[
1
]
=
(
report
->
enable_bits
&
2
)
!=
0
;
...
...
dlls/winebus.sys/unix_private.h
View file @
b2ba9737
...
...
@@ -73,7 +73,6 @@ struct effect_params
UINT16
trigger_repeat_interval
;
UINT16
sample_period
;
UINT16
start_delay
;
BYTE
gain
;
BYTE
trigger_button
;
BOOL
axis_enabled
[
2
];
BOOL
direction_enabled
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment