History

HID: add missing hid usages

Add some missing hid usages from consumer page, add some display brightness control usages from approved hid usage table request HUTTR41: http://www.usb.org/developers/hidpage/HUTRR41.pdf and add voice command usage from approved request HUTTR45: http://www.usb.org/developers/hidpage/Voice_Command_Usage.pdf [jkosina@suse.cz: removed KEY_BRIGHTNESS_TOGGLE / KEY_DISPLAYTOGGLE conflict from hid-debug.c]

Olivier Gay committed 12 years ago

Commit f362e691 parent b81fd5b3 files · +40 −1Browse files

Showing the changes to include/uapi/linux (1 of 3 files). Show all

Unified · Split

include/uapi/linux/input.h+16−1
@@ -461,7 +461,10 @@ struct input_keymap_entry { · 460 unmodified lines
461#define KEY_VIDEO_NEXT 241 /* drive next video source */461#define KEY_VIDEO_NEXT 241 /* drive next video source */
462#define KEY_VIDEO_PREV 242 /* drive previous video source */462#define KEY_VIDEO_PREV 242 /* drive previous video source */
463#define KEY_BRIGHTNESS_CYCLE 243 /* brightness up, after max is min */463#define KEY_BRIGHTNESS_CYCLE 243 /* brightness up, after max is min */
464#define KEY_BRIGHTNESS_ZERO 244 /* brightness off, use ambient */464#define KEY_BRIGHTNESS_AUTO 244 /* Set Auto Brightness: manual
465 brightness control is off,
466 rely on ambient */
467#define KEY_BRIGHTNESS_ZERO KEY_BRIGHTNESS_AUTO
465#define KEY_DISPLAY_OFF 245 /* display device to off state */468#define KEY_DISPLAY_OFF 245 /* display device to off state */
466 469
467#define KEY_WWAN 246 /* Wireless WAN (LTE, UMTS, GSM, etc.) */470#define KEY_WWAN 246 /* Wireless WAN (LTE, UMTS, GSM, etc.) */
@@ -631,6 +634,7 @@ struct input_keymap_entry { · 163 unmodified lines
631#define KEY_ADDRESSBOOK 0x1ad /* AL Contacts/Address Book */634#define KEY_ADDRESSBOOK 0x1ad /* AL Contacts/Address Book */
632#define KEY_MESSENGER 0x1ae /* AL Instant Messaging */635#define KEY_MESSENGER 0x1ae /* AL Instant Messaging */
633#define KEY_DISPLAYTOGGLE 0x1af /* Turn display (LCD) on and off */636#define KEY_DISPLAYTOGGLE 0x1af /* Turn display (LCD) on and off */
637#define KEY_BRIGHTNESS_TOGGLE KEY_DISPLAYTOGGLE
634#define KEY_SPELLCHECK 0x1b0 /* AL Spell Check */638#define KEY_SPELLCHECK 0x1b0 /* AL Spell Check */
635#define KEY_LOGOFF 0x1b1 /* AL Logoff */639#define KEY_LOGOFF 0x1b1 /* AL Logoff */
636 640
@@ -722,6 +726,17 @@ struct input_keymap_entry { · 85 unmodified lines
722 726
723#define KEY_ALS_TOGGLE 0x230 /* Ambient light sensor */727#define KEY_ALS_TOGGLE 0x230 /* Ambient light sensor */
724 728
729#define KEY_BUTTONCONFIG 0x240 /* AL Button Configuration */
730#define KEY_TASKMANAGER 0x241 /* AL Task/Project Manager */
731#define KEY_JOURNAL 0x242 /* AL Log/Journal/Timecard */
732#define KEY_CONTROLPANEL 0x243 /* AL Control Panel */
733#define KEY_APPSELECT 0x244 /* AL Select Task/Application */
734#define KEY_SCREENSAVER 0x245 /* AL Screen Saver */
735#define KEY_VOICECOMMAND 0x246 /* Listening Voice Command */
736
737#define KEY_BRIGHTNESS_MIN 0x250 /* Set Brightness to Minimum */
738#define KEY_BRIGHTNESS_MAX 0x251 /* Set Brightness to Maximum */
739
725#define BTN_TRIGGER_HAPPY 0x2c0740#define BTN_TRIGGER_HAPPY 0x2c0
726#define BTN_TRIGGER_HAPPY1 0x2c0741#define BTN_TRIGGER_HAPPY1 0x2c0
727#define BTN_TRIGGER_HAPPY2 0x2c1742#define BTN_TRIGGER_HAPPY2 0x2c1