mirror of
https://github.com/wessel-novacustom/clevo-keyboard.git
synced 2024-11-15 03:34:01 +01:00
uw_keyboard: Map space brightness to kbd brightness toggle
Implements #34 Affects Trinity devices
This commit is contained in:
parent
b209a5b082
commit
e61ea200a3
|
@ -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 } },
|
||||||
|
|
Loading…
Reference in a new issue