From patchwork Thu Jul 27 14:51:33 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Programmingkid X-Patchwork-Id: 9867057 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id CE8BB6038C for ; Thu, 27 Jul 2017 14:52:14 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C0B86286B8 for ; Thu, 27 Jul 2017 14:52:14 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B5B3728718; Thu, 27 Jul 2017 14:52:14 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 669D6286B8 for ; Thu, 27 Jul 2017 14:52:14 +0000 (UTC) Received: from localhost ([::1]:43448 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dak97-0002mu-Na for patchwork-qemu-devel@patchwork.kernel.org; Thu, 27 Jul 2017 10:52:13 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:48438) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dak8Z-0002md-BE for qemu-devel@nongnu.org; Thu, 27 Jul 2017 10:51:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dak8V-0003kL-GY for qemu-devel@nongnu.org; Thu, 27 Jul 2017 10:51:39 -0400 Received: from mail-it0-x242.google.com ([2607:f8b0:4001:c0b::242]:36053) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dak8V-0003jr-Bm for qemu-devel@nongnu.org; Thu, 27 Jul 2017 10:51:35 -0400 Received: by mail-it0-x242.google.com with SMTP id r9so12886124ita.3 for ; Thu, 27 Jul 2017 07:51:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:content-transfer-encoding:mime-version:subject:message-id:date :cc:to; bh=g/+GZQzMYdO+ZCjXeUlQuL0v5WHgSmZDFnk1+fC5ncE=; b=HVGWhrPw0oGud22S5/BB1FKLwnOhRM3Q3Slhbe+O/tBUueIlzo2+FuYO1Lr2ehVsPp 08o5nT6lso/x6eJpjQxTbJZ72ML9LoL4HNj9CdDD45fBR1g7zopQHMjm1K5fIOWhzHC4 rDR8u2gYdTa3VUQRyE63mg47cpgW9L8zvXyTMga6GcdGYusoUox8tODnZwxvxxgEU/Pw EGR6A9cBHUc6WJvpHCsRIbzcL3PMpSo+Dd54Sp8Z2on83KTgLKpV80e+anQuvJyJ3eQn FJrxt/mwwvMXXMNTuRbukThEnlqh1NB5iWOSkef/vy3q4OnWhPoqANGTAl2kh7Il42L7 LOkg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:content-transfer-encoding:mime-version :subject:message-id:date:cc:to; bh=g/+GZQzMYdO+ZCjXeUlQuL0v5WHgSmZDFnk1+fC5ncE=; b=t7qlshJh/DVnrVi+TOre7/5goHjVP3qNLluqhVXV9ywjJ8vxLV10J7jQdqOCjsIxyS 7TcqeApxC/ySWR/P1yohEYGiEhfUGc2ipqH9lm2OlcpoO5DQWXAPrzSSpxvoJ72oqCz4 ZKO1TWKaWVsb7g9G0Or+nqXddv7+gKGA1e56yEE9tyHsJVoiiQkCmb0TufzwaQ4KkM9Y nit9/klHfAn+uWv5+za2H+QlpRdr3McuJjHafMnYxo2/ZgpkCWoacdP0NWqlzMaCQh3w ocS0fwrT1i7dKLf5kKCb5VbiIr7gbMYRbdjuTU2EU0JgmL8dc9NBbmF+fQNryu9GWj9j E+7A== X-Gm-Message-State: AIVw111NlhKXxjKdBePrqDRJjLdKDHaUoqPboeSHhL9v/fWBwioyrIZK c3nm1T722NpaWpxoPL4= X-Received: by 10.36.125.11 with SMTP id b11mr5127143itc.47.1501167094698; Thu, 27 Jul 2017 07:51:34 -0700 (PDT) Received: from [192.168.0.10] (d199-74-164-53.col.wideopenwest.com. [74.199.53.164]) by smtp.gmail.com with ESMTPSA id t69sm513502itb.38.2017.07.27.07.51.33 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 27 Jul 2017 07:51:34 -0700 (PDT) From: Programmingkid Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Message-Id: <1920BE03-56F6-4E44-B9D2-0638A86FACB2@gmail.com> Date: Thu, 27 Jul 2017 10:51:33 -0400 To: Peter Maydell , Markus Armbruster , Eric Blake X-Mailer: Apple Mail (2.3273) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4001:c0b::242 Subject: [Qemu-devel] [PATCH 1/2] Add more function keys to QEMU X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "qemu-devel@nongnu.org qemu-devel" Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Virus-Scanned: ClamAV using ClamSMTP There are now keyboards that have 19 function keys. This patch extends QEMU so these function keys can be used. Signed-off-by: John Arbuckle --- qapi-schema.json | 6 +++++- ui/input-keymap.c | 4 ++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/qapi-schema.json b/qapi-schema.json index 9c6c3e1..a051820 100644 --- a/qapi-schema.json +++ b/qapi-schema.json @@ -4842,6 +4842,10 @@ # @hiragana: since 2.9 # @henkan: since 2.9 # @yen: since 2.9 +# @f16: since 2.10 +# @f17: since 2.10 +# @f18: since 2.10 +# @f19: since 2.10 # # Since: 1.3.0 # @@ -4864,7 +4868,7 @@ 'props', 'undo', 'front', 'copy', 'open', 'paste', 'find', 'cut', 'lf', 'help', 'meta_l', 'meta_r', 'compose', 'pause', 'ro', 'hiragana', 'henkan', 'yen', - 'kp_comma', 'kp_equals', 'power' ] } + 'kp_comma', 'kp_equals', 'power', 'f16', 'f17', 'f18', 'f19'] } ## # @KeyValue: diff --git a/ui/input-keymap.c b/ui/input-keymap.c index 8a1476f..d1169e3 100644 --- a/ui/input-keymap.c +++ b/ui/input-keymap.c @@ -114,6 +114,10 @@ static const int qcode_to_number[] = { [Q_KEY_CODE_F11] = 0x57, [Q_KEY_CODE_F12] = 0x58, + [Q_KEY_CODE_F16] = 0x59, + [Q_KEY_CODE_F17] = 0x5a, + [Q_KEY_CODE_F18] = 0x5b, + [Q_KEY_CODE_F19] = 0x5c, [Q_KEY_CODE_PRINT] = 0xb7,