| From b13652269c7cebdee091d6feac87b0946a0a4856 Mon Sep 17 00:00:00 2001 |
| From: Dmitry Torokhov <dmitry.torokhov@gmail.com> |
| Date: Fri, 18 Jan 2019 11:18:17 -0800 |
| Subject: [PATCH] BACKPORT: Input: Add FULL_SCREEN, ASPECT_RATIO, |
| SELECTIVE_SCREENSHOT key |
| |
| Smashing the following commits into this patch to define the |
| KEY_FULL_SCREEN |
| KEY_ASPECT_RATIO |
| KEY_SELECTIVE_SCREENSHOT |
| |
| Commit 07ba9e7be423 (Input: document meanings of KEY_SCREEN and KEY_ZOOM) |
| Commit 3b059da9835c (Input: allocate keycode for "Selective Screenshot" key) |
| COmmit fbf66796a0ae (Input: move the new KEY_SELECTIVE_SCREENSHOT keycode) |
| |
| Signed-off-by: Rajat Jain <rajatja@google.com> |
| BUG=b:146501925 |
| TEST=Build |
| Change-Id: I3bdf4f954b252617434cb7137a06a3226ba3ea27 |
| --- |
| include/uapi/linux/input-event-codes.h | 9 +++++++-- |
| 1 file changed, 7 insertions(+), 2 deletions(-) |
| |
| diff --git a/include/uapi/linux/input-event-codes.h b/include/uapi/linux/input-event-codes.h |
| index 3c755b6815c57..d3f5347ed244b 100644 |
| --- a/include/uapi/linux/input-event-codes.h |
| +++ b/include/uapi/linux/input-event-codes.h |
| @@ -438,10 +438,12 @@ |
| #define KEY_TITLE 0x171 |
| #define KEY_SUBTITLE 0x172 |
| #define KEY_ANGLE 0x173 |
| -#define KEY_ZOOM 0x174 |
| +#define KEY_FULL_SCREEN 0x174 /* AC View Toggle */ |
| +#define KEY_ZOOM KEY_FULL_SCREEN |
| #define KEY_MODE 0x175 |
| #define KEY_KEYBOARD 0x176 |
| -#define KEY_SCREEN 0x177 |
| +#define KEY_ASPECT_RATIO 0x177 /* HUTRR37: Aspect */ |
| +#define KEY_SCREEN KEY_ASPECT_RATIO |
| #define KEY_PC 0x178 /* Media Select Computer */ |
| #define KEY_TV 0x179 /* Media Select TV */ |
| #define KEY_TV2 0x17a /* Media Select Cable */ |
| @@ -692,6 +694,9 @@ |
| #define KEY_MAX 0x2ff |
| #define KEY_CNT (KEY_MAX+1) |
| |
| +/* Select an area of screen to be copied */ |
| +#define KEY_SELECTIVE_SCREENSHOT 0x27a |
| + |
| /* |
| * Relative axes |
| */ |
| -- |
| 2.26.0.rc2.310.g2932bb562d-goog |
| |