diff options
author | Bastien Nocera <hadess@hadess.net> | 2010-11-30 02:33:05 -0500 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2010-12-01 02:11:26 -0500 |
commit | 0417596f66dd6621f4fd46563c7c56a95311dbe8 (patch) | |
tree | fb2bae90054fc8e96b1e4c0954edc97df1117736 /include/linux/input.h | |
parent | 09910509ebc74643e94fe6f3feb4c23b019aeb34 (diff) |
Input: add keycodes for touchpad on/off keys
Some laptops will have a "touchpad toggle" soft button, which expects
user-space to turn off the touchpad themselves, some other devices will
do this in hardware, but send key events telling us that the touchpad
has been turned off/on.
KEY_TOUCHPAD_ON/KEY_TOUCHPAD_OFF will be used by user-space to show a
popup with the status of the touchpad.
Signed-off-by: Bastien Nocera <hadess@hadess.net>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Diffstat (limited to 'include/linux/input.h')
-rw-r--r-- | include/linux/input.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/input.h b/include/linux/input.h index 6ef44465db8d..a50046f15372 100644 --- a/include/linux/input.h +++ b/include/linux/input.h | |||
@@ -624,6 +624,10 @@ struct input_keymap_entry { | |||
624 | #define KEY_CAMERA_FOCUS 0x210 | 624 | #define KEY_CAMERA_FOCUS 0x210 |
625 | #define KEY_WPS_BUTTON 0x211 /* WiFi Protected Setup key */ | 625 | #define KEY_WPS_BUTTON 0x211 /* WiFi Protected Setup key */ |
626 | 626 | ||
627 | #define KEY_TOUCHPAD_TOGGLE 0x212 /* Request switch touchpad on or off */ | ||
628 | #define KEY_TOUCHPAD_ON 0x213 | ||
629 | #define KEY_TOUCHPAD_OFF 0x214 | ||
630 | |||
627 | #define BTN_TRIGGER_HAPPY 0x2c0 | 631 | #define BTN_TRIGGER_HAPPY 0x2c0 |
628 | #define BTN_TRIGGER_HAPPY1 0x2c0 | 632 | #define BTN_TRIGGER_HAPPY1 0x2c0 |
629 | #define BTN_TRIGGER_HAPPY2 0x2c1 | 633 | #define BTN_TRIGGER_HAPPY2 0x2c1 |