From patchwork Sun Jul 30 20:29:27 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Programmingkid X-Patchwork-Id: 9870665 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 D92DF603B4 for ; Sun, 30 Jul 2017 20:30:21 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CC40F2852A for ; Sun, 30 Jul 2017 20:30:21 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C0E9428584; Sun, 30 Jul 2017 20:30:21 +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 552A828572 for ; Sun, 30 Jul 2017 20:30:21 +0000 (UTC) Received: from localhost ([::1]:56404 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dbuqr-0004oX-BT for patchwork-qemu-devel@patchwork.kernel.org; Sun, 30 Jul 2017 16:30:13 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:35320) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dbuqF-0004oH-4n for qemu-devel@nongnu.org; Sun, 30 Jul 2017 16:29:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dbuqA-0005lM-70 for qemu-devel@nongnu.org; Sun, 30 Jul 2017 16:29:35 -0400 Received: from mail-io0-x244.google.com ([2607:f8b0:4001:c06::244]:38448) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dbuqA-0005kE-0k for qemu-devel@nongnu.org; Sun, 30 Jul 2017 16:29:30 -0400 Received: by mail-io0-x244.google.com with SMTP id l7so17931162iof.5 for ; Sun, 30 Jul 2017 13:29:29 -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=kNifepctNcDLRtaLDNNP0BIbqUct5EBo+ZPC1FiQRio=; b=D/T5Jzs1qq93zjJRixg8ZH+zg85pLz5pjIy/lFiV/S8GW08gkG2Si6OzYSlZythZCM 0GCZ33v/s30wrXnaujl65oIGz7oOAw822ZCqe9cdPZfwiWaFTZLtQW63IWF3OA90y4g3 ImAA17h9I6i/sDe3YKwrFqOhk1xgPVhOLVs422+eMi7D5nbf2rCvCC/ik3LoFOmnLpoH u8cPp6wXZLiYYTQhavPdrAY58emKOYxFSgIfdJ9r6sQgsi+93Aq9A/v4Ky3zPSY7n1vI 8QfZqI8294EfEZJrB0zneWY2lpdx/iFn5lROfXanmDqfcNYPUHT5wd42pINYuZ248uUH yjRg== 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=kNifepctNcDLRtaLDNNP0BIbqUct5EBo+ZPC1FiQRio=; b=KZtgGWECM+Cct6zPuGMFt5OdbVNRVtqN57kOQTF9u33hk3UskH8UHnCWtru7DjESO+ YOt4gzqF0Cj9w+KpZdJ9pXLmtHW7u1Wjz01TQioQar0yiVO/QFXtm5hXyO1mOwfKiVFu 9V9Cedkzeb1rSWgHaT6nuOIkgJaIItvR9IDfuWHnFThSZkXfF+p9KhD4Pfx70/XoDPEV 7jzJ8RT/c2dbN7GRkGrO2nqqibch/1qWYbhaE7tLl9CQzirVr8r36ESbKjzVOYzG/lSv iow63x6TBzQCav6F1ELG/6TjyrFkbUU+FrxkzOav7t58JPabtqjEw824PJAI269QbK/1 zWbg== X-Gm-Message-State: AIVw110eP0QcZ5PUjokfcdoWMwpD59ELpkRV0zAvlTyfPQumezHwmuDG AQJ8qT/KJwe+/g== X-Received: by 10.107.3.168 with SMTP id e40mr17465767ioi.308.1501446569358; Sun, 30 Jul 2017 13:29:29 -0700 (PDT) Received: from [192.168.0.8] (d199-74-164-53.col.wideopenwest.com. [74.199.53.164]) by smtp.gmail.com with ESMTPSA id r21sm10870880ita.16.2017.07.30.13.29.28 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 30 Jul 2017 13:29:28 -0700 (PDT) From: Programmingkid Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Message-Id: Date: Sun, 30 Jul 2017 16:29:27 -0400 To: Peter Maydell , Eric Blake , "Daniel P. Berrange" 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:c06::244 Subject: [Qemu-devel] [PATCH v2 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 | 12 +++++++++++- ui/input-keymap.c | 9 +++++++++ 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/qapi-schema.json b/qapi-schema.json index c96f0a2..f1c989b 100644 --- a/qapi-schema.json +++ b/qapi-schema.json @@ -4862,6 +4862,15 @@ # @ac_refresh: since 2.10 # @ac_bookmarks: since 2.10 # altgr, altgr_r: dropped in 2.10 +# @f16: since 2.11 +# @f17: since 2.11 +# @f18: since 2.11 +# @f19: since 2.11 +# @f20: since 2.11 +# @f21: since 2.11 +# @f22: since 2.11 +# @f23: since 2.11 +# @f24: since 2.11 # # Since: 1.3.0 # @@ -4888,7 +4897,8 @@ 'audionext', 'audioprev', 'audiostop', 'audioplay', 'audiomute', 'volumeup', 'volumedown', 'mediaselect', 'mail', 'calculator', 'computer', - 'ac_home', 'ac_back', 'ac_forward', 'ac_refresh', 'ac_bookmarks' ] } + 'ac_home', 'ac_back', 'ac_forward', 'ac_refresh', 'ac_bookmarks', + 'f16', 'f17', 'f18', 'f19', 'f20', 'f21', 'f22', 'f23', 'f24'] } ## # @KeyValue: diff --git a/ui/input-keymap.c b/ui/input-keymap.c index cf979c2..c0413e1 100644 --- a/ui/input-keymap.c +++ b/ui/input-keymap.c @@ -251,6 +251,15 @@ 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_F20] = 0x5d, + [Q_KEY_CODE_F21] = 0x5e, + [Q_KEY_CODE_F22] = 0x5f, + [Q_KEY_CODE_F23] = 0x60, + [Q_KEY_CODE_F24] = 0x61, [Q_KEY_CODE_PRINT] = 0xb7,