From 635865efa509ee8776150fc18083264ce5c63450 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Wed, 19 Dec 2018 12:43:20 +1000 Subject: [PATCH] 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 --- src/driver-hidpp20.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/driver-hidpp20.c b/src/driver-hidpp20.c index 43609c29..1caf6c07 100644 --- a/src/driver-hidpp20.c +++ b/src/driver-hidpp20.c @@ -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",