Skip to content

Commit 358f247

Browse files
palidtor
authored andcommitted
Input: add key code for ambient light sensor button
Many notebooks have a special button for enabling/disabling ambient light sensor. Signed-off-by: Pali Rohár <pali.rohar@gmail.com> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
1 parent e4cfb03 commit 358f247

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎include/uapi/linux/input.h‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -719,6 +719,8 @@ struct input_keymap_entry {
719719
#define BTN_DPAD_LEFT 0x222
720720
#define BTN_DPAD_RIGHT 0x223
721721

722+
#define KEY_ALS_TOGGLE 0x230 /* Ambient light sensor */
723+
722724
#define BTN_TRIGGER_HAPPY 0x2c0
723725
#define BTN_TRIGGER_HAPPY1 0x2c0
724726
#define BTN_TRIGGER_HAPPY2 0x2c1

0 commit comments

Comments
 (0)