mirror of
https://github.com/libratbag/libratbag.git
synced 2026-11-07 23:23:52 +01:00
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:
committed by
Benjamin Tissoires
parent
38949013f7
commit
635865efa5
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user