[atreus] Re: Fwd: Re: Umlauts and Layers - atreus - FreeLists
- From: Phil Hagelberg <phil@xxxxxxxxxx>
- To: atreus@xxxxxxxxxxxxx
- Date: Mon, 15 Feb 2016 08:23:40 +0700
Alexander Baier <alexander.baier@xxxxxxxxxxx> writes:
I read through the tmk documentation located at docs/keymap.md but could
not find out what the ACTION macro does, or what ACT_RMODS is, or how
these two defines actually work. Do you know why these macros are
structure this way?
The action macro is just a way of representing an action that is more
complicated than a single keycode. In this case, ACT_MODS means you wish
to send a modifier key along with a keycode. But you should be able to
just use the existing macros in keymap_common.h like SHIFT, RALT, etc.
Do you have some pointers for this as well? I did not find any
documentation in docs/keymap.md mentioning sticky or oneshot
Sticky layers are just implemented like the L2 key in the default
layout, using ACTION_LAYER_ON. Oneshot modifiers are documented in
keymap.md. I don't think oneshot layers are supported as a regular
thing, but you could chain together actions with macros to get this
effect pretty easily, I think.
Description: PGP signature
Other related posts: