HID: input: add mapping for "Full Screen" key
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Fri, 18 Jan 2019 22:20:27 +0000 (14:20 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 27 Mar 2019 00:41:31 +0000 (17:41 -0700)
According to HUT 1.12 usage 0x232 from the consumer page is reserved for
switching application between full screen and windowed mode, so let's add
the mapping.

Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/hid/hid-input.c

index cebe8a8cce2e9399ca71ea4cec1cc3ab853aa093..ecb1b6f268531753b634c53da15de6dd1882087b 100644 (file)
@@ -1014,6 +1014,7 @@ static void hidinput_configure_usage(struct hid_input *hidinput, struct hid_fiel
                case 0x22d: map_key_clear(KEY_ZOOMIN);          break;
                case 0x22e: map_key_clear(KEY_ZOOMOUT);         break;
                case 0x22f: map_key_clear(KEY_ZOOMRESET);       break;
+               case 0x232: map_key_clear(KEY_FULL_SCREEN);     break;
                case 0x233: map_key_clear(KEY_SCROLLUP);        break;
                case 0x234: map_key_clear(KEY_SCROLLDOWN);      break;
                case 0x238: map_rel(REL_HWHEEL);                break;