uw_keyboard: Map space brightness to kbd brightness toggle

Implements #34

Affects Trinity devices
This commit is contained in:
Christoffer Sandberg 2020-12-21 11:08:33 +01:00
parent b209a5b082
commit e61ea200a3
No known key found for this signature in database
GPG key ID: BF563F71B6C7A96D

View file

@ -47,6 +47,7 @@
#define UNIWILL_KEY_RFKILL 0x0A4 #define UNIWILL_KEY_RFKILL 0x0A4
#define UNIWILL_KEY_KBDILLUMDOWN 0x0B1 #define UNIWILL_KEY_KBDILLUMDOWN 0x0B1
#define UNIWILL_KEY_KBDILLUMUP 0x0B2 #define UNIWILL_KEY_KBDILLUMUP 0x0B2
#define UNIWILL_KEY_KBDILLUMTOGGLE 0x0B9
#define UNIWILL_OSD_TOUCHPADWORKAROUND 0xFFF #define UNIWILL_OSD_TOUCHPADWORKAROUND 0xFFF
@ -78,6 +79,7 @@ static struct key_entry uniwill_wmi_keymap[] = {
// Keyboard brightness // Keyboard brightness
{ KE_KEY, UNIWILL_KEY_KBDILLUMDOWN, { KEY_KBDILLUMDOWN } }, { KE_KEY, UNIWILL_KEY_KBDILLUMDOWN, { KEY_KBDILLUMDOWN } },
{ KE_KEY, UNIWILL_KEY_KBDILLUMUP, { KEY_KBDILLUMUP } }, { KE_KEY, UNIWILL_KEY_KBDILLUMUP, { KEY_KBDILLUMUP } },
{ KE_KEY, UNIWILL_KEY_KBDILLUMTOGGLE, { KEY_KBDILLUMTOGGLE } },
// Only used to put ev bits // Only used to put ev bits
{ KE_KEY, 0xffff, { KEY_F6 } }, { KE_KEY, 0xffff, { KEY_F6 } },
{ KE_KEY, 0xffff, { KEY_LEFTALT } }, { KE_KEY, 0xffff, { KEY_LEFTALT } },