Leader key implementation (#326)
* implements leader key for planck experimental * allows override of leader timeout * adds ability to use the leader key in seq * fixes leader keycode * adds chording prototype * fixes keycode detection * moves music mode to quantum.c * disables chording by default * updates process_action functions to return bool
This commit is contained in:
		
							parent
							
								
									79d26f331a
								
							
						
					
					
						commit
						1a8c0dd22d
					
				
					 20 changed files with 290 additions and 64 deletions
				
			
		| 
						 | 
				
			
			@ -12,8 +12,9 @@ void matrix_scan_user(void) {
 | 
			
		|||
}
 | 
			
		||||
 | 
			
		||||
__attribute__ ((weak))
 | 
			
		||||
void process_action_user(keyrecord_t *record) {
 | 
			
		||||
bool process_action_user(keyrecord_t *record) {
 | 
			
		||||
	// leave this function blank - it can be defined in a keymap file
 | 
			
		||||
	return true;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
__attribute__ ((weak))
 | 
			
		||||
| 
						 | 
				
			
			@ -35,11 +36,11 @@ void matrix_scan_kb(void) {
 | 
			
		|||
	matrix_scan_user();
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void process_action_kb(keyrecord_t *record) {
 | 
			
		||||
bool process_action_kb(keyrecord_t *record) {
 | 
			
		||||
	// put your per-action keyboard code here
 | 
			
		||||
	// runs for every action, just before processing by the firmware
 | 
			
		||||
 | 
			
		||||
	process_action_user(record);
 | 
			
		||||
	return process_action_user(record);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void led_set_kb(uint8_t usb_led) {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -75,7 +75,7 @@ inline void gh60_wasd_leds_off(void)   	{ DDRF &= ~(1<<7); PORTF &= ~(1<<7); }
 | 
			
		|||
 | 
			
		||||
void matrix_init_user(void);
 | 
			
		||||
void matrix_scan_user(void);
 | 
			
		||||
void process_action_user(keyrecord_t *record);
 | 
			
		||||
bool process_action_user(keyrecord_t *record);
 | 
			
		||||
void led_set_user(uint8_t usb_led);
 | 
			
		||||
 | 
			
		||||
#endif
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue