mirror of
https://github.com/libratbag/libratbag.git
synced 2026-11-07 15:14:38 +01:00
test: remove support for the deprecated button type field
This commit is contained in:
@@ -88,8 +88,7 @@ static const struct ratbag_test_device default_device_descr = {
|
||||
{
|
||||
.name = NULL,
|
||||
.buttons = {
|
||||
{ .button_type = RATBAG_BUTTON_TYPE_LEFT,
|
||||
.action_type = RATBAG_BUTTON_ACTION_TYPE_BUTTON,
|
||||
{ .action_type = RATBAG_BUTTON_ACTION_TYPE_BUTTON,
|
||||
.button = 0 },
|
||||
},
|
||||
.resolutions = {
|
||||
|
||||
@@ -51,9 +51,6 @@ test_read_button(struct ratbag_button *button)
|
||||
struct ratbag_test_macro_event *e;
|
||||
int idx;
|
||||
|
||||
/* Only take the button types from the first profile */
|
||||
button->type = d->profiles[0].buttons[button->index].button_type;
|
||||
|
||||
switch (b->action_type) {
|
||||
case RATBAG_BUTTON_ACTION_TYPE_NONE:
|
||||
button->action.type = RATBAG_BUTTON_ACTION_TYPE_NONE;
|
||||
|
||||
@@ -39,7 +39,6 @@ struct ratbag_test_macro_event {
|
||||
};
|
||||
|
||||
struct ratbag_test_button {
|
||||
enum ratbag_button_type button_type;
|
||||
enum ratbag_button_action_type action_type;
|
||||
union {
|
||||
int button;
|
||||
|
||||
Reference in New Issue
Block a user