diff mbox series

[6/7] HID: input: add mapping for "Full Screen" key

Message ID 20190118233037.87318-6-dmitry.torokhov@gmail.com (mailing list archive)
State Mainlined
Commit afbbaa1bc0011d28f7604f9a7f0532f997c6f45e
Delegated to: Jiri Kosina
Headers show
Series [1/7] Input: document meanings of KEY_SCREEN and KEY_ZOOM | expand

Commit Message

Dmitry Torokhov Jan. 18, 2019, 11:30 p.m. UTC
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>
---

This needs the new key definition.

 drivers/hid/hid-input.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/drivers/hid/hid-input.c b/drivers/hid/hid-input.c
index cebe8a8cce2e..ecb1b6f26853 100644
--- a/drivers/hid/hid-input.c
+++ b/drivers/hid/hid-input.c
@@ -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;