[atreus] Re: Key codes not sent
- From: Phil Hagelberg <phil@xxxxxxxxxx>
- To: atreus@xxxxxxxxxxxxx
- Date: Fri, 22 Apr 2016 09:42:18 +0700
Judson Lester <nyarly@xxxxxxxxx> writes:
Sorta related, I'm using a Mac after a long abstinence and finding
that the media keys on no keyboard, Atreus included, control anything,
and I can't confirm that any keyboard even sends keycodes for them.
Does anyone have hints about that?
From the explanations I can find, Macs use a USB keycode for volume
which is not only different from any other volume keys, but it exists in
a different code page. It is not explained in the TMK documentation, but
I think the ACTION_USAGE_CONSUMER macro will allow you to send keycodes
From another code page.
These should be the keycodes sent by Mac keyboards for volume up and
down: 0xE9, 0xEA. Because they are in a different code page, they cannot
be pressed at the same time as the normal USB keycodes, but this might
be what you need for OS X to register it.
So putting ACTION_USAGE_CONSUMER(0xE9) in the fn_actions array and then
placing an FN4 in the keymaps[] array should do the trick. Please let
me know if this works on Macs and I will document it in the readme.
thanks,
Phil
Attachment:
signature.asc
Description: PGP signature
Other related posts: