forked from mirrors/qmk_userspace
Add direction to dynamic_macro_record_start_user (#19689)
This commit is contained in:
parent
9a68472da8
commit
68efea70b2
13 changed files with 17 additions and 17 deletions
|
|
@ -138,7 +138,7 @@ void led_blink(void) {
|
|||
backlight_toggle();
|
||||
}
|
||||
|
||||
void dynamic_macro_record_start_user(void) {
|
||||
void dynamic_macro_record_start_user(int8_t direction) {
|
||||
led_blink();
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -709,7 +709,7 @@ void leader_end_user(void) {
|
|||
|
||||
/**************** DYNAMIC MACRO *********************/
|
||||
|
||||
void dynamic_macro_record_start_user(void) {
|
||||
void dynamic_macro_record_start_user(int8_t direction) {
|
||||
onMac = false; /* reset layer bool as dynamic macro clear the keyboard and reset layers. */
|
||||
if (!isBlinking && !isRecording) {
|
||||
reset_blink_cycle();
|
||||
|
|
|
|||
|
|
@ -408,7 +408,7 @@ static bool is_on = false;
|
|||
static bool is_dynamic_recording = false;
|
||||
static uint16_t dynamic_loop_timer;
|
||||
|
||||
void dynamic_macro_record_start_user(void) {
|
||||
void dynamic_macro_record_start_user(int8_t direction) {
|
||||
is_dynamic_recording = true;
|
||||
dynamic_loop_timer = timer_read();
|
||||
ergodox_right_led_1_on();
|
||||
|
|
|
|||
|
|
@ -113,7 +113,7 @@ bool rgb_matrix_indicators_user(void) {
|
|||
|
||||
|
||||
// Called on start
|
||||
void dynamic_macro_record_start_user(void) {
|
||||
void dynamic_macro_record_start_user(int8_t direction) {
|
||||
dprint("-- Recording Started\n");
|
||||
layer_on(_UTILITY);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -234,7 +234,7 @@ layer_state_t layer_state_set_user(layer_state_t state) {
|
|||
}
|
||||
|
||||
// Dynamic Macro Recording Backlight
|
||||
void dynamic_macro_record_start_user(void) {
|
||||
void dynamic_macro_record_start_user(int8_t direction) {
|
||||
is_macro_recording = true;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -42,7 +42,7 @@ static int current_accel = 0;
|
|||
static uint16_t REC = DM_REC1;
|
||||
static uint16_t PLY = DM_PLY1;
|
||||
|
||||
void dynamic_macro_record_start_user(void) {
|
||||
void dynamic_macro_record_start_user(int8_t direction) {
|
||||
REC = DM_RSTP;
|
||||
RECORDING = true;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ bool is_launching = false;
|
|||
#ifdef DYNAMIC_MACRO_ENABLE
|
||||
static bool is_dynamic_recording = false;
|
||||
|
||||
void dynamic_macro_record_start_user(void) { is_dynamic_recording = true; }
|
||||
void dynamic_macro_record_start_user(int8_t direction) { is_dynamic_recording = true; }
|
||||
|
||||
void dynamic_macro_record_end_user(int8_t direction) {
|
||||
is_dynamic_recording = false;
|
||||
|
|
|
|||
|
|
@ -204,7 +204,7 @@ void update_layer_leds(void) {
|
|||
|
||||
#endif
|
||||
|
||||
void dynamic_macro_record_start_user(void) {
|
||||
void dynamic_macro_record_start_user(int8_t direction) {
|
||||
isRecording++;
|
||||
blink_cycle_timer = timer_read();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -318,7 +318,7 @@ void keyboard_post_init_user(void) {
|
|||
|
||||
static bool prerecord_clicky = false;
|
||||
|
||||
void dynamic_macro_record_start_user(void) {
|
||||
void dynamic_macro_record_start_user(int8_t direction) {
|
||||
prerecord_clicky = is_clicky_on();
|
||||
if (!prerecord_clicky) {
|
||||
clicky_on();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue