qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: John Arbuckle <programmingkidx@gmail.com>
To: qemu-devel@nongnu.org, peter.maydell@linaro.org,
	eblake@redhat.com, berrange@redhat.com
Cc: John Arbuckle <programmingkidx@gmail.com>
Subject: [Qemu-devel] [PATCH v3 1/2] Add more function keys to QEMU
Date: Mon, 31 Jul 2017 15:44:36 -0400	[thread overview]
Message-ID: <20170731194437.4077-2-programmingkidx@gmail.com> (raw)
In-Reply-To: <20170731194437.4077-1-programmingkidx@gmail.com>

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 <programmingkidx@gmail.com>
---
 qapi-schema.json  | 16 +++++++++++++++-
 ui/input-keymap.c | 12 ++++++++++++
 2 files changed, 27 insertions(+), 1 deletion(-)

diff --git a/qapi-schema.json b/qapi-schema.json
index c96f0a26f6..f3433aabe6 100644
--- a/qapi-schema.json
+++ b/qapi-schema.json
@@ -4862,6 +4862,18 @@
 # @ac_refresh: since 2.10
 # @ac_bookmarks: since 2.10
 # altgr, altgr_r: dropped in 2.10
+# @f13: since 2.11
+# @f14: since 2.11
+# @f15: since 2.11
+# @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 +4900,9 @@
             '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',
+            'f13', 'f14', 'f15', 'f16', 'f17', 'f18', 'f19', 'f20', 'f21',
+            'f22', 'f23', 'f24']}
 
 ##
 # @KeyValue:
diff --git a/ui/input-keymap.c b/ui/input-keymap.c
index cf979c2ce9..21a25d9c63 100644
--- a/ui/input-keymap.c
+++ b/ui/input-keymap.c
@@ -251,6 +251,18 @@ static const int qcode_to_number[] = {
 
     [Q_KEY_CODE_F11] = 0x57,
     [Q_KEY_CODE_F12] = 0x58,
+    [Q_KEY_CODE_F13] = 0x5d,
+    [Q_KEY_CODE_F14] = 0x5e,
+    [Q_KEY_CODE_F15] = 0x5f,
+    [Q_KEY_CODE_F16] = 0x55,
+    [Q_KEY_CODE_F17] = 0x83,
+    [Q_KEY_CODE_F18] = 0xf7,
+    [Q_KEY_CODE_F19] = 0x84,
+    [Q_KEY_CODE_F20] = 0x5a,
+    [Q_KEY_CODE_F21] = 0x74,
+    [Q_KEY_CODE_F22] = 0xf9,
+    [Q_KEY_CODE_F23] = 0x6d,
+    [Q_KEY_CODE_F24] = 0x6f,
 
     [Q_KEY_CODE_PRINT] = 0xb7,
 
-- 
2.11.0 (Apple Git-81)

  reply	other threads:[~2017-07-31 19:45 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-07-31 19:44 [Qemu-devel] [PATCH v3 0/2] Add more function keys support John Arbuckle
2017-07-31 19:44 ` John Arbuckle [this message]
2017-08-01  8:34   ` [Qemu-devel] [PATCH v3 1/2] Add more function keys to QEMU Daniel P. Berrange
2017-07-31 19:44 ` [Qemu-devel] [PATCH v3 2/2] Add more function keys to cocoa.m John Arbuckle

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20170731194437.4077-2-programmingkidx@gmail.com \
    --to=programmingkidx@gmail.com \
    --cc=berrange@redhat.com \
    --cc=eblake@redhat.com \
    --cc=peter.maydell@linaro.org \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).