Remove/migrate action_get_macro()s from default keymaps (#5625)
* Remove/migrate action_get_macro()s from default keymaps * Leave these breaks alone
This commit is contained in:
		
							parent
							
								
									2a231457bd
								
							
						
					
					
						commit
						f14629ed1c
					
				
					 119 changed files with 286 additions and 1860 deletions
				
			
		| 
						 | 
				
			
			@ -37,15 +37,9 @@ enum custom_keycodes {
 | 
			
		|||
  RGBLED_DECREASE_SAT,
 | 
			
		||||
  RGBLED_INCREASE_VAL,
 | 
			
		||||
  RGBLED_DECREASE_VAL,
 | 
			
		||||
  M_SAMPLE
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
enum macro_keycodes {
 | 
			
		||||
  KC_SAMPLEMACRO,
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
//Macros
 | 
			
		||||
#define M_SAMPLE M(KC_SAMPLEMACRO)
 | 
			
		||||
 | 
			
		||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
 | 
			
		||||
 | 
			
		||||
/* Qwerty
 | 
			
		||||
| 
						 | 
				
			
			@ -278,6 +272,11 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
 | 
			
		|||
      }
 | 
			
		||||
      return false;
 | 
			
		||||
      break;
 | 
			
		||||
    case M_SAMPLE:
 | 
			
		||||
      if (record->event.pressed){
 | 
			
		||||
        SEND_STRING("hello world");
 | 
			
		||||
      }
 | 
			
		||||
      return false;
 | 
			
		||||
  }
 | 
			
		||||
  return true;
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			@ -328,27 +327,6 @@ void music_scale_user(void)
 | 
			
		|||
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
/*
 | 
			
		||||
 * Macro definition
 | 
			
		||||
 */
 | 
			
		||||
const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt)
 | 
			
		||||
{
 | 
			
		||||
    if (!eeconfig_is_enabled()) {
 | 
			
		||||
      eeconfig_init();
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    switch (id) {
 | 
			
		||||
      case KC_SAMPLEMACRO:
 | 
			
		||||
        if (record->event.pressed){
 | 
			
		||||
          return MACRO (I(10), T(H), T(E), T(L), T(L), T(O), T(SPACE), T(W), T(O), T(R), T(L), T(D), END);
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    return MACRO_NONE;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
void matrix_update(struct CharacterMatrix *dest,
 | 
			
		||||
                          const struct CharacterMatrix *source) {
 | 
			
		||||
  if (memcmp(dest->display, source->display, sizeof(dest->display))) {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue