* Use extra comptible = "zmk,behavior-global" to add behaviors to global bindings for event notification. * Implement mod-tap, as a keymap binding and global one to skip tap if other keycode pressed while held.
15 lines
No EOL
488 B
C
15 lines
No EOL
488 B
C
#pragma once
|
|
|
|
#include <zmk/keys.h>
|
|
|
|
int zmk_events_position_pressed(u32_t position);
|
|
int zmk_events_position_released(u32_t position);
|
|
int zmk_events_keycode_pressed(u32_t keycode);
|
|
int zmk_events_keycode_released(u32_t keycode);
|
|
int zmk_events_modifiers_pressed(zmk_mod_flags modifiers);
|
|
int zmk_events_modifiers_released(zmk_mod_flags modifiers);
|
|
int zmk_events_consumer_key_pressed(u32_t usage);
|
|
int zmk_events_consumer_key_released(u32_t usage);
|
|
|
|
// TODO: Encoders?
|
|
// TODO: Sensors?
|