[Keymap] Drashna Keymap updates for 0.21.0 (#21073)
This commit is contained in:
		
							parent
							
								
									1411c79aef
								
							
						
					
					
						commit
						3a3e5abac9
					
				
					 71 changed files with 1609 additions and 2215 deletions
				
			
		| 
						 | 
				
			
			@ -237,34 +237,6 @@ void keyboard_post_init_keymap(void) {
 | 
			
		|||
}
 | 
			
		||||
#endif  // RGB_MATRIX_INIT
 | 
			
		||||
 | 
			
		||||
#ifdef ENCODER_ENABLE
 | 
			
		||||
bool encoder_update_user(uint8_t index, bool clockwise) {
 | 
			
		||||
    switch (get_highest_layer(layer_state)) {
 | 
			
		||||
        case _RAISE:
 | 
			
		||||
            clockwise ? tap_code(KC_VOLD) : tap_code(KC_VOLU);
 | 
			
		||||
            break;
 | 
			
		||||
        case _LOWER:
 | 
			
		||||
#    ifdef RGB_MATRIX_ENABLE
 | 
			
		||||
            clockwise ? rgb_matrix_step() : rgb_matrix_step_reverse();
 | 
			
		||||
#    else
 | 
			
		||||
            clockwise ? tap_code(KC_PGDN) : tap_code(KC_PGUP);
 | 
			
		||||
#    endif
 | 
			
		||||
            break;
 | 
			
		||||
        case _ADJUST:
 | 
			
		||||
#    ifdef AUDIO_CLICKY
 | 
			
		||||
            clockwise ? clicky_freq_up() : clicky_freq_down();
 | 
			
		||||
#    endif
 | 
			
		||||
            break;
 | 
			
		||||
        default:
 | 
			
		||||
            clockwise ? tap_code(KC_DOWN) : tap_code(KC_UP);
 | 
			
		||||
    }
 | 
			
		||||
#    ifdef AUDIO_CLICKY
 | 
			
		||||
    clicky_play();
 | 
			
		||||
#    endif
 | 
			
		||||
    return true;
 | 
			
		||||
}
 | 
			
		||||
#endif  // ENCODER_ENABLE
 | 
			
		||||
 | 
			
		||||
#ifdef KEYBOARD_planck_rev6
 | 
			
		||||
bool dip_switch_update_user(uint8_t index, bool active) {
 | 
			
		||||
    switch (index) {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue