add RATBAG_LED_TYPE_SCROLL_WHEEL

This commit is contained in:
Thomas Hindoe Paaboel Andersen
2017-10-17 00:49:18 +02:00
committed by Thomas H. P. Andersen
parent 85a358e07c
commit 790c5e90bd
5 changed files with 8 additions and 0 deletions

View File

@@ -254,6 +254,8 @@ parse_ledtypes(char **strv, enum ratbag_led_type *types, size_t ntypes)
types[i] = RATBAG_LED_TYPE_SIDE;
else if (streq(s, "battery"))
types[i] = RATBAG_LED_TYPE_SIDE;
else if (streq(s, "wheel"))
types[i] = RATBAG_LED_TYPE_WHEEL;
else
return -1;

View File

@@ -354,6 +354,7 @@ enum ratbag_led_type {
RATBAG_LED_TYPE_SIDE,
RATBAG_LED_TYPE_BATTERY,
RATBAG_LED_TYPE_DPI,
RATBAG_LED_TYPE_WHEEL,
};
/**