Keymap introspection for combos. (#19670)
This commit is contained in:
		
							parent
							
								
									433dc60686
								
							
						
					
					
						commit
						5faa23d54c
					
				
					 226 changed files with 533 additions and 729 deletions
				
			
		| 
						 | 
				
			
			@ -33,8 +33,4 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 | 
			
		|||
#endif
 | 
			
		||||
#define TAPPING_TERM 120
 | 
			
		||||
 | 
			
		||||
#ifdef COMBO_COUNT
 | 
			
		||||
#undef COMBO_COUNT
 | 
			
		||||
#endif
 | 
			
		||||
#define COMBO_COUNT 2
 | 
			
		||||
#define COMBO_TERM 20
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -36,7 +36,7 @@ static long int oled_timeout = 300000;
 | 
			
		|||
enum combos { ESCAPE_COMBO, DELETE_COMBO };
 | 
			
		||||
const uint16_t PROGMEM escape_combo[] = { KC_GRV, KC_1, COMBO_END };
 | 
			
		||||
const uint16_t PROGMEM delete_combo[] = { KC_DOT, KC_SLSH, COMBO_END };
 | 
			
		||||
combo_t key_combos[COMBO_COUNT] = {
 | 
			
		||||
combo_t key_combos[] = {
 | 
			
		||||
    [ESCAPE_COMBO] = COMBO(escape_combo, KC_ESC),
 | 
			
		||||
    [DELETE_COMBO] = COMBO(delete_combo, KC_DEL)
 | 
			
		||||
};
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -29,7 +29,6 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 | 
			
		|||
// #define EE_HANDS
 | 
			
		||||
 | 
			
		||||
#define COMBO_TERM 20
 | 
			
		||||
#define COMBO_COUNT 3
 | 
			
		||||
 | 
			
		||||
#define PERMISSIVE_HOLD
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue