winebus.sys: Fix lnxev button start byte vs bit index.

Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Rémi Bernon 2021-08-12 10:26:55 +02:00 committed by Alexandre Julliard
parent b36b2999c8
commit 5b9c1e9163
1 changed files with 1 additions and 1 deletions

View File

@ -618,7 +618,7 @@ static BOOL set_report_from_event(struct wine_input_private *ext, struct input_e
return FALSE;
#endif
case EV_KEY:
set_button_value(ext->button_start + ext->button_map[ie->code], ie->value, ext->current_report_buffer);
set_button_value(ext->button_start * 8 + ext->button_map[ie->code], ie->value, ext->current_report_buffer);
return FALSE;
case EV_ABS:
set_abs_axis_value(ext, ie->code, ie->value);