From: Programmingkid <programmingkidx@gmail.com>
To: Peter Maydell <peter.maydell@linaro.org>
Cc: Gerd Hoffmann <kraxel@redhat.com>,
qemu-devel qemu-devel <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] [PATCH v3 3/5] adb.c: correct several key assignments
Date: Mon, 16 May 2016 17:18:50 -0400 [thread overview]
Message-ID: <62E51AFA-EDC5-430C-82D9-70CDECE856E6@gmail.com> (raw)
In-Reply-To: <CAFEAcA-W2RzF9iTn2APEcFay_-Po8Ncm_xg8L4j=9vHOURGUfA@mail.gmail.com>
On May 16, 2016, at 4:48 PM, Peter Maydell wrote:
> On 16 May 2016 at 21:42, Programmingkid <programmingkidx@gmail.com> wrote:
>>
>> On May 16, 2016, at 2:04 PM, Peter Maydell wrote:
>>
>>> On 6 May 2016 at 03:37, Programmingkid <programmingkidx@gmail.com> wrote:
>>>> /* ADB_KEY_RIGHT_COMMAND works as right super in Linux */
>>>> /* Use ADB_KEY_LEFT_COMMAND for Mac OS compatibility */
>>>> - [Q_KEY_CODE_META_R] = 0x7e,
>>>> + [Q_KEY_CODE_META_R] = ADB_KEY_LEFT_COMMAND,
>>>
>>> This looks weird. Given that the Apple Extended Keyboard
>>> hardware documentation just says that both left and right
>>> Command keys return 0x37, we should probably just call
>>> the #define ADB_KEY_COMMAND. (That in turn means that the
>>> comments are unnecessary and you can just delete them
>>> from the patch you put them in.)
>>
>> I liked the idea of giving someone who might need to tell the
>> difference between left and right command keys a way to
>> accomplish their goal.
>
> We're emulating a real bit of hardware here (ie the Apple
> Extended Keyboard). If that hardware does not have distinct
> left and right command keys then that's what we have to emulate.
I think the Apple Extended keyboard could tell the difference between
left and right command keys, but Apple just decided not to document
this feature. I know the USB keyboards can see the difference and
Apple did not document that feature. In the end I suppose it is just
easier to have just an ADB_KEY_COMMAND constant.
prev parent reply other threads:[~2016-05-16 21:18 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-05-06 2:37 [Qemu-devel] [PATCH v3 3/5] adb.c: correct several key assignments Programmingkid
2016-05-16 18:04 ` Peter Maydell
2016-05-16 20:42 ` Programmingkid
2016-05-16 20:48 ` Peter Maydell
2016-05-16 21:18 ` Programmingkid [this message]
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=62E51AFA-EDC5-430C-82D9-70CDECE856E6@gmail.com \
--to=programmingkidx@gmail.com \
--cc=kraxel@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).