From 02c95422f0039011a4f92d66542c17e1a7d6076c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Filipe=20La=C3=ADns?= Date: Mon, 13 Apr 2020 01:10:55 +0100 Subject: [PATCH] hidpp20: fix mapping button to consumer usages MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Filipe LaĆ­ns --- 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 eb11ad7f..905a47a1 100644 --- a/src/driver-hidpp20.c +++ b/src/driver-hidpp20.c @@ -575,7 +575,7 @@ hidpp20drv_update_button_8100(struct ratbag_button *button) code = ratbag_hidraw_get_keyboard_usage_from_keycode(device, key); if (code == 0) { subtype = HIDPP20_BUTTON_HID_TYPE_CONSUMER_CONTROL; - code = ratbag_hidraw_get_consumer_usage_from_keycode(device, action->action.key.key); + code = ratbag_hidraw_get_consumer_usage_from_keycode(device, key); if (code == 0) return -EINVAL; }