Change action API
This commit is contained in:
		
							parent
							
								
									7054203e16
								
							
						
					
					
						commit
						9bc82bf61c
					
				
					 6 changed files with 120 additions and 132 deletions
				
			
		| 
						 | 
				
			
			@ -181,11 +181,8 @@ action_t keymap_fn_to_action(uint8_t keycode)
 | 
			
		|||
}
 | 
			
		||||
 | 
			
		||||
/* convert key to action */
 | 
			
		||||
action_t keymap_get_action(uint8_t layer, uint8_t row, uint8_t col)
 | 
			
		||||
action_t action_for_key(uint8_t layer, key_t key)
 | 
			
		||||
{
 | 
			
		||||
    key_t key;
 | 
			
		||||
    key.pos.row = row;
 | 
			
		||||
    key.pos.col = col;
 | 
			
		||||
    uint8_t keycode = keymap_key_to_keycode(layer, key);
 | 
			
		||||
    switch (keycode) {
 | 
			
		||||
        case KC_FN0 ... KC_FN31:
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue