1
0
forked from drath/libratbag

hidpp20: if the button is remapped, use that

A non-zero value for the remapped field means the button is mapped to that
button.

"diverted" means to decouple it from normal HID reports and report it via
HID++ only. In our case here, we "map" it, which is different.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
Peter Hutterer
2018-12-19 12:43:20 +10:00
committed by Benjamin Tissoires
parent 38949013f7
commit 635865efa5

View File

@@ -90,7 +90,7 @@ hidpp20drv_read_button_1b04(struct ratbag_button *button)
control = &drv_data->controls[button->index];
mapping = control->control_id;
if (control->reporting.divert || control->reporting.persist)
if (control->reporting.remapped)
mapping = control->reporting.remapped;
log_raw(device->ratbag,
" - button%d: %s (%02x) %s%s:%d\n",