Tidy use of raw hid within keyboards (#23557)
This commit is contained in:
		
							parent
							
								
									4a7fdda668
								
							
						
					
					
						commit
						1513966c38
					
				
					 11 changed files with 21 additions and 112 deletions
				
			
		| 
						 | 
				
			
			@ -172,27 +172,3 @@ webusb_pos_t webusb_keymap[] = {
 | 
			
		|||
    {4, 0}, {4, 1}, {4, 2}, {4, 6}, {4, 10}, {4, 11}, {4, 12}, {4, 13},
 | 
			
		||||
};
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
#ifndef RAW_ENABLE
 | 
			
		||||
bool process_record_kb(uint16_t keycode, keyrecord_t *record) {
 | 
			
		||||
#else
 | 
			
		||||
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
 | 
			
		||||
#endif
 | 
			
		||||
  if (record->event.pressed) {
 | 
			
		||||
    switch(keycode) {
 | 
			
		||||
    #ifdef RGBLIGHT_ENABLE
 | 
			
		||||
        #ifdef RGB_MATRIX_ENABLE
 | 
			
		||||
        case KC_F13: // toggle rgb matrix
 | 
			
		||||
            rgb_matrix_toggle();
 | 
			
		||||
            return false;
 | 
			
		||||
        case KC_F14:
 | 
			
		||||
            rgb_matrix_step();
 | 
			
		||||
            return false;
 | 
			
		||||
        #endif
 | 
			
		||||
    #endif
 | 
			
		||||
        default:
 | 
			
		||||
        break;
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
  return true;
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue