Skip to content

Commit

Permalink
Input: add key code for ambient light sensor button
Browse files Browse the repository at this point in the history
Many notebooks have a special button for enabling/disabling ambient
light sensor.

Signed-off-by: Pali Rohár <[email protected]>
Signed-off-by: Dmitry Torokhov <[email protected]>
  • Loading branch information
pali authored and dtor committed Nov 26, 2013
1 parent e4cfb03 commit 358f247
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/uapi/linux/input.h
Original file line number Diff line number Diff line change
Expand Up @@ -719,6 +719,8 @@ struct input_keymap_entry {
#define BTN_DPAD_LEFT 0x222
#define BTN_DPAD_RIGHT 0x223

#define KEY_ALS_TOGGLE 0x230 /* Ambient light sensor */

#define BTN_TRIGGER_HAPPY 0x2c0
#define BTN_TRIGGER_HAPPY1 0x2c0
#define BTN_TRIGGER_HAPPY2 0x2c1
Expand Down

0 comments on commit 358f247

Please sign in to comment.