Numerous keyboards are adding dictate keys which allows for text messages to be dictated by a microphone. This patch adds a new key definition KEY_DICTATE and maps 0x0c/0x0d8 usage code to this new keycode. Additionally hid-debug is adjusted to recognize this new usage code as well.
Showing the changes to include/uapi (1 of 3 files). Show all
Unified · Split
| @@ -612,6 +612,7 @@ · 611 unmodified lines | ||
| 612 | 612 | #define KEY_ASSISTANT 0x247 /* AL Context-aware desktop assistant */ |
| 613 | 613 | #define KEY_KBD_LAYOUT_NEXT 0x248 /* AC Next Keyboard Layout Select */ |
| 614 | 614 | #define KEY_EMOJI_PICKER 0x249 /* Show/hide emoji picker (HUTRR101) */ |
| 615 | +#define KEY_DICTATE 0x24a /* Start or Stop Voice Dictation Session (HUTRR99) */ | |
| 615 | 616 | |
| 616 | 617 | #define KEY_BRIGHTNESS_MIN 0x250 /* Set Brightness to Minimum */ |
| 617 | 618 | #define KEY_BRIGHTNESS_MAX 0x251 /* Set Brightness to Maximum */ |