[Keyboard] Update dynamis keyboard (#17625)
Co-authored-by: Drashna Jaelre <drashna@live.com>
This commit is contained in:
		
							parent
							
								
									38de991fda
								
							
						
					
					
						commit
						a2294bcc97
					
				
					 7 changed files with 116 additions and 110 deletions
				
			
		| 
						 | 
				
			
			@ -18,16 +18,12 @@
 | 
			
		|||
 | 
			
		||||
#ifdef ENCODER_ENABLE
 | 
			
		||||
bool encoder_update_kb(uint8_t index, bool clockwise) {
 | 
			
		||||
    if (!encoder_update_user(index, clockwise)) {
 | 
			
		||||
        return false; 
 | 
			
		||||
    if (!encoder_update_user(index, clockwise)) { return false; }
 | 
			
		||||
    if (clockwise) {
 | 
			
		||||
        tap_code(layer_state == 0 ? KC_WH_D : KC_VOLD);
 | 
			
		||||
    } else {
 | 
			
		||||
        tap_code(layer_state == 0 ? KC_WH_U : KC_VOLU);
 | 
			
		||||
    }
 | 
			
		||||
   if (index == 0) { /* First encoder */
 | 
			
		||||
      if (clockwise) {
 | 
			
		||||
         tap_code(KC_WH_D);
 | 
			
		||||
      } else {
 | 
			
		||||
         tap_code(KC_WH_U);
 | 
			
		||||
      }
 | 
			
		||||
   }
 | 
			
		||||
   return false;
 | 
			
		||||
    return true;
 | 
			
		||||
}
 | 
			
		||||
#endif
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue