Normalise Dynamic Macro keycodes (#18939)
* `DYN_REC_START1` -> `QK_DYNAMIC_MACRO_RECORD_START_1` * `DYN_REC_START2` -> `QK_DYNAMIC_MACRO_RECORD_START_2` * `DYN_MACRO_PLAY1` -> `QK_DYNAMIC_MACRO_PLAY_1` * `DYN_MACRO_PLAY2` -> `QK_DYNAMIC_MACRO_PLAY_2` * `DYN_REC_STOP` -> `QK_DYNAMIC_MACRO_RECORD_STOP` * Update docs
This commit is contained in:
@@ -40,17 +40,17 @@ void macro_tog_key( qk_tap_dance_state_t *state, void *user_data ) {
|
||||
|
||||
keyrecord_t kr;
|
||||
kr.event.pressed = false;
|
||||
uint16_t action = DYN_REC_STOP;
|
||||
uint16_t action = QK_DYNAMIC_MACRO_RECORD_STOP;
|
||||
|
||||
if ( state->count == 1 ) {
|
||||
action = DYN_MACRO_PLAY1;
|
||||
action = QK_DYNAMIC_MACRO_PLAY_1;
|
||||
}
|
||||
else if ( state->count == 2 ) {
|
||||
action = DYN_REC_STOP;
|
||||
action = QK_DYNAMIC_MACRO_RECORD_STOP;
|
||||
kr.event.pressed = true;
|
||||
}
|
||||
else if ( state->count == 3 ) {
|
||||
action = DYN_REC_START1;
|
||||
action = QK_DYNAMIC_MACRO_RECORD_START_1;
|
||||
}
|
||||
|
||||
process_record_dynamic_macro( action, &kr );
|
||||
|
Reference in New Issue
Block a user