Get rid of USB_LED_CAPS_LOCK (#21436)
				
					
				
			This commit is contained in:
		
							parent
							
								
									928e03e8d6
								
							
						
					
					
						commit
						87b11345a5
					
				
					 70 changed files with 214 additions and 226 deletions
				
			
		| 
						 | 
				
			
			@ -686,7 +686,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
 | 
			
		|||
 | 
			
		||||
  if ((capslock_state & MOD_MASK_SHIFT) == MOD_MASK_SHIFT) {
 | 
			
		||||
    // CAPSLOCK is currently active, disable it
 | 
			
		||||
    if (host_keyboard_leds() & (1 << USB_LED_CAPS_LOCK)) {
 | 
			
		||||
    if (host_keyboard_led_state().caps_lock) {
 | 
			
		||||
      unregister_code(KC_LOCKING_CAPS_LOCK);
 | 
			
		||||
    } else {
 | 
			
		||||
      register_code(KC_LOCKING_CAPS_LOCK);
 | 
			
		||||
| 
						 | 
				
			
			@ -697,11 +697,6 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
 | 
			
		|||
  return process_record_user_shifted(keycode, record);
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
// Runs just one time when the keyboard initializes.
 | 
			
		||||
void matrix_init_user(void){
 | 
			
		||||
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
// Runs constantly in the background, in a loop.
 | 
			
		||||
void matrix_scan_user(void) {
 | 
			
		||||
  uint8_t layer = get_highest_layer(layer_state);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue