diff options
author | Douglas Anderson <dianders@chromium.org> | 2016-06-28 10:32:00 -0700 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2016-06-29 09:51:03 -0700 |
commit | 9a9b6aa6a8759c83024627d681eff982d6ee03b7 (patch) | |
tree | 9581a44476e21c528225d515de19b52720d0f755 /include/uapi/linux/input-event-codes.h | |
parent | 60842ef8128e7bf58c024814cd0dc14319232b6c (diff) | |
download | op-kernel-dev-9a9b6aa6a8759c83024627d681eff982d6ee03b7.zip op-kernel-dev-9a9b6aa6a8759c83024627d681eff982d6ee03b7.tar.gz |
Input: add SW_PEN_INSERTED define
Some devices with a pen may have a switch that can be used to detect
when the pen is inserted or removed to a slot on the device. Let's add
a define to the input event codes so that everyone can be on the same
page for what event we should generate when the pen is inserted or
removed.
In general the pen switch could be used by the software on the device to
kick off any number of actions when the pen is inserted or removed.
Signed-off-by: Douglas Anderson <dianders@chromium.org>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'include/uapi/linux/input-event-codes.h')
-rw-r--r-- | include/uapi/linux/input-event-codes.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/uapi/linux/input-event-codes.h b/include/uapi/linux/input-event-codes.h index 737fa32..d6d071f 100644 --- a/include/uapi/linux/input-event-codes.h +++ b/include/uapi/linux/input-event-codes.h @@ -780,6 +780,7 @@ #define SW_ROTATE_LOCK 0x0c /* set = rotate locked/disabled */ #define SW_LINEIN_INSERT 0x0d /* set = inserted */ #define SW_MUTE_DEVICE 0x0e /* set = device disabled */ +#define SW_PEN_INSERTED 0x0f /* set = pen inserted */ #define SW_MAX 0x0f #define SW_CNT (SW_MAX+1) |