Input: add KEY_ROTATE_LOCK_TOGGLE
authorStefan Brüns <stefan.bruens@rwth-aachen.de>
Thu, 9 Nov 2017 22:44:34 +0000 (23:44 +0100)
committerDarren Hart (VMware) <dvhart@infradead.org>
Fri, 8 Dec 2017 21:54:43 +0000 (13:54 -0800)
The key has the same use as the SW_ROTATE_LOCK, but is used on devices
where the state is not tracked by the hardware but has to be handled
in software.

Signed-off-by: Stefan Brüns <stefan.bruens@rwth-aachen.de>
Signed-off-by: Darren Hart (VMware) <dvhart@infradead.org>
include/uapi/linux/input-event-codes.h

index 061fa62..53fbae2 100644 (file)
 #define BTN_DPAD_RIGHT         0x223
 
 #define KEY_ALS_TOGGLE         0x230   /* Ambient light sensor */
+#define KEY_ROTATE_LOCK_TOGGLE 0x231   /* Display rotation lock */
 
 #define KEY_BUTTONCONFIG               0x240   /* AL Button Configuration */
 #define KEY_TASKMANAGER                0x241   /* AL Task/Project Manager */