[Keymap] Keymap and readme updates (#5449)
* Remove tap dance code from keymap.c * Add tap dance code to userspace files * Readme updates * Update keymap images
This commit is contained in:
		
							parent
							
								
									4b4eba997f
								
							
						
					
					
						commit
						6e7eff47b3
					
				
					 6 changed files with 54 additions and 31 deletions
				
			
		| 
						 | 
				
			
			@ -5,6 +5,11 @@ bool process_record_keymap(uint16_t keycode, keyrecord_t *record) {
 | 
			
		|||
  return true;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
qk_tap_dance_action_t tap_dance_actions[] = {
 | 
			
		||||
	[TD_WIN] = ACTION_TAP_DANCE_DOUBLE(KC_CAD, KC_LOCK),
 | 
			
		||||
	[TD_ESC] = ACTION_TAP_DANCE_DOUBLE(KC_ESC, KC_GRV)
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
 | 
			
		||||
  switch (keycode) {
 | 
			
		||||
  case KC_MAKE:
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -13,6 +13,12 @@ enum custom_keycodes {
 | 
			
		|||
  NEW_SAFE_RANGE  //use "NEW_SAFE_RANGE" for keymap specific codes
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
//Tap Dance Declarations
 | 
			
		||||
enum {
 | 
			
		||||
	TD_WIN = 0,
 | 
			
		||||
	TD_ESC
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
//Aliases for longer keycodes
 | 
			
		||||
#define KC_CAD	LALT(LCTL(KC_DEL))
 | 
			
		||||
#define KC_LOCK	LGUI(KC_L)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue