Refactor printedpad (#24236)
This commit is contained in:
		
							parent
							
								
									b5b4e93857
								
							
						
					
					
						commit
						ac1b488170
					
				
					 7 changed files with 88 additions and 77 deletions
				
			
		| 
						 | 
				
			
			@ -42,4 +42,29 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
 | 
			
		|||
        KC_V,   KC_W,   KC_X,
 | 
			
		||||
        KC_Y,   KC_Z,   KC_ENT
 | 
			
		||||
    )
 | 
			
		||||
};
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
 | 
			
		||||
    switch(keycode) {
 | 
			
		||||
        case LT(0, KC_NO):
 | 
			
		||||
            if (record->event.pressed) {
 | 
			
		||||
                // on tap
 | 
			
		||||
                if (record->tap.count) {
 | 
			
		||||
                    if (get_highest_layer(layer_state) >= 3) {
 | 
			
		||||
                        layer_clear(); 
 | 
			
		||||
                    } else { 
 | 
			
		||||
                        layer_move(get_highest_layer(layer_state) + 1);
 | 
			
		||||
                    }
 | 
			
		||||
                }
 | 
			
		||||
#ifdef OLED_ENABLE
 | 
			
		||||
                // on hold
 | 
			
		||||
                else {
 | 
			
		||||
                    void oled_display_mode_step(void);
 | 
			
		||||
                    oled_display_mode_step();
 | 
			
		||||
                }
 | 
			
		||||
#endif
 | 
			
		||||
            }
 | 
			
		||||
            return false;
 | 
			
		||||
    }
 | 
			
		||||
    return true;
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue