Update keymaps to use PDF keycode (#24633)
This commit is contained in:
		
							parent
							
								
									4a5bae51cd
								
							
						
					
					
						commit
						e4e015c0c8
					
				
					 80 changed files with 286 additions and 1705 deletions
				
			
		| 
						 | 
				
			
			@ -30,9 +30,7 @@ enum lime_layers {
 | 
			
		|||
};
 | 
			
		||||
 | 
			
		||||
enum custom_keycodes {
 | 
			
		||||
    KC_QWERTY = SAFE_RANGE,
 | 
			
		||||
    KC_COLEMAK,
 | 
			
		||||
    KC_LOWER,
 | 
			
		||||
    KC_LOWER = SAFE_RANGE,
 | 
			
		||||
    KC_RAISE,
 | 
			
		||||
    KC_ADJUST,
 | 
			
		||||
    KC_PRVWD,
 | 
			
		||||
| 
						 | 
				
			
			@ -47,6 +45,9 @@ enum custom_keycodes {
 | 
			
		|||
    KC_JOYSTICK_DEBUG,
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
#define KC_QWERTY PDF(_QWERTY)
 | 
			
		||||
#define KC_COLEMAK PDF(_COLEMAK)
 | 
			
		||||
 | 
			
		||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
 | 
			
		||||
/*
 | 
			
		||||
 * QWERTY
 | 
			
		||||
| 
						 | 
				
			
			@ -480,16 +481,6 @@ bool showedJump = true;
 | 
			
		|||
 | 
			
		||||
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
 | 
			
		||||
    switch (keycode) {
 | 
			
		||||
        case KC_QWERTY:
 | 
			
		||||
            if (record->event.pressed) {
 | 
			
		||||
                set_single_persistent_default_layer(_QWERTY);
 | 
			
		||||
            }
 | 
			
		||||
            return false;
 | 
			
		||||
        case KC_COLEMAK:
 | 
			
		||||
            if (record->event.pressed) {
 | 
			
		||||
                set_single_persistent_default_layer(_COLEMAK);
 | 
			
		||||
            }
 | 
			
		||||
            return false;
 | 
			
		||||
        case KC_LOWER:
 | 
			
		||||
            if (record->event.pressed) {
 | 
			
		||||
                layer_on(_LOWER);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue