diff options
author | Stefan Kerkmann <[email protected]> | 2022-08-06 12:51:13 +0200 |
---|---|---|
committer | GitHub <[email protected]> | 2022-08-06 20:51:13 +1000 |
commit | f27b617f36d55ac5469247016a1b79304f892366 (patch) | |
tree | 3334b3b4cf653fa131eef0729529c06450e12168 /quantum/keyboard.h | |
parent | e9f9f99a3374ad46e9a2baf2fe35c3f1d0715d4b (diff) | |
download | qmk_firmware-f27b617f36d55ac5469247016a1b79304f892366.tar.gz qmk_firmware-f27b617f36d55ac5469247016a1b79304f892366.zip |
[Core] Process all changed keys in one scan loop, deprecate `QMK_KEYS_PER_SCAN` (#15292)
Diffstat (limited to 'quantum/keyboard.h')
-rw-r--r-- | quantum/keyboard.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/quantum/keyboard.h b/quantum/keyboard.h index fe0736a515..86ce65aac1 100644 --- a/quantum/keyboard.h +++ b/quantum/keyboard.h @@ -71,9 +71,15 @@ static inline bool IS_RELEASED(keyevent_t event) { /* Common keyevent object factory */ #define MAKE_KEYPOS(row_num, col_num) ((keypos_t){.row = (row_num), .col = (col_num)}) + +/** + * @brief Constructs a key event for a pressed or released key. + */ #define MAKE_KEYEVENT(row_num, col_num, press) ((keyevent_t){.key = MAKE_KEYPOS((row_num), (col_num)), .pressed = (press), .time = (timer_read() | 1)}) -/* Tick event */ +/** + * @brief Constructs a internal tick event that is used to drive the internal QMK state machine. + */ #define TICK_EVENT MAKE_KEYEVENT(KEYLOC_TICK, KEYLOC_TICK, false) #ifdef ENCODER_MAP_ENABLE |