Add hardware keyboard color handling

This commit is contained in:
Jeremy Soller
2020-09-23 10:42:03 -06:00
committed by Jeremy Soller
parent 480e05d12b
commit 343722e350
3 changed files with 73 additions and 0 deletions

View File

@ -153,6 +153,18 @@ static void hardware_hotkey(uint16_t key) {
case K_KBD_BKL:
kbled_set(kbled_get() + 1);
break;
case K_KBD_COLOR:
if (acpi_ecos != EC_OS_FULL) kbled_hotkey_color();
break;
case K_KBD_DOWN:
if (acpi_ecos != EC_OS_FULL) kbled_hotkey_down();
break;
case K_KBD_UP:
if (acpi_ecos != EC_OS_FULL) kbled_hotkey_up();
break;
case K_KBD_TOGGLE:
if (acpi_ecos != EC_OS_FULL) kbled_hotkey_toggle();
break;
}
}