From e61ea200a3f79be342c7bacb94cd1105d067f35a Mon Sep 17 00:00:00 2001 From: Christoffer Sandberg Date: Mon, 21 Dec 2020 11:08:33 +0100 Subject: [PATCH] uw_keyboard: Map space brightness to kbd brightness toggle Implements #34 Affects Trinity devices --- src/uniwill_keyboard.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/uniwill_keyboard.h b/src/uniwill_keyboard.h index eb4fb6e..8ee8f96 100644 --- a/src/uniwill_keyboard.h +++ b/src/uniwill_keyboard.h @@ -47,6 +47,7 @@ #define UNIWILL_KEY_RFKILL 0x0A4 #define UNIWILL_KEY_KBDILLUMDOWN 0x0B1 #define UNIWILL_KEY_KBDILLUMUP 0x0B2 +#define UNIWILL_KEY_KBDILLUMTOGGLE 0x0B9 #define UNIWILL_OSD_TOUCHPADWORKAROUND 0xFFF @@ -78,6 +79,7 @@ static struct key_entry uniwill_wmi_keymap[] = { // Keyboard brightness { KE_KEY, UNIWILL_KEY_KBDILLUMDOWN, { KEY_KBDILLUMDOWN } }, { KE_KEY, UNIWILL_KEY_KBDILLUMUP, { KEY_KBDILLUMUP } }, + { KE_KEY, UNIWILL_KEY_KBDILLUMTOGGLE, { KEY_KBDILLUMTOGGLE } }, // Only used to put ev bits { KE_KEY, 0xffff, { KEY_F6 } }, { KE_KEY, 0xffff, { KEY_LEFTALT } },