diff options
author | Pete Johanson <peter@peterjohanson.com> | 2020-07-31 00:07:16 -0400 |
---|---|---|
committer | Pete Johanson <peter@peterjohanson.com> | 2020-07-31 00:07:16 -0400 |
commit | f548f2a87c670a2b56507bc104e1af39fa3846e7 (patch) | |
tree | e67f674281b03ec58c9c349cd1df497395b4cead /app/include/zmk/event-manager.h | |
parent | f269b26ea1cdd61e39f13c6e11cbdfcdc6a0bd5c (diff) |
Initial stab at mod-tap improvements.
* Not working: Roll over + mod-tap with multiple
mod-tap bindings!
Diffstat (limited to 'app/include/zmk/event-manager.h')
-rw-r--r-- | app/include/zmk/event-manager.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/include/zmk/event-manager.h b/app/include/zmk/event-manager.h index 3938171..43d3f29 100644 --- a/app/include/zmk/event-manager.h +++ b/app/include/zmk/event-manager.h @@ -72,8 +72,12 @@ struct zmk_event_subscription { #define ZMK_EVENT_RAISE(ev) \ zmk_event_manager_raise((struct zmk_event_header *)ev); +#define ZMK_EVENT_RAISE_AFTER(ev, mod) \ + zmk_event_manager_raise_after((struct zmk_event_header *)ev, &zmk_listener_##mod); + #define ZMK_EVENT_RELEASE(ev) \ zmk_event_manager_release((struct zmk_event_header *)ev); int zmk_event_manager_raise(struct zmk_event_header *event); +int zmk_event_manager_raise_after(struct zmk_event_header *event, const struct zmk_listener *listener); int zmk_event_manager_release(struct zmk_event_header *event); |