1
0
forked from drath/libratbag

tools: ratbagctl: fixes for specials

few minor issues which were unseen because driver-test was missing to set
the special key mappings

Signed-off-by: Benjamin Tissoires <benjamin.tissoires@gmail.com>
This commit is contained in:
Benjamin Tissoires
2017-07-26 18:08:39 +02:00
parent 861562e58a
commit 7c313a31fd
3 changed files with 26 additions and 25 deletions

View File

@@ -127,6 +127,10 @@ test_read_button(struct ratbag_button *button)
ratbag_button_copy_macro(button, m);
ratbag_button_macro_unref(m);
break;
case RATBAG_BUTTON_ACTION_TYPE_SPECIAL:
button->action.type = RATBAG_BUTTON_ACTION_TYPE_SPECIAL;
button->action.action.special = p->buttons[button->index].special;
break;
default:
button->action.type = RATBAG_BUTTON_ACTION_TYPE_UNKNOWN;
}