Macro keycode name refactoring (#18958)
This commit is contained in:
		
							parent
							
								
									fe00c80211
								
							
						
					
					
						commit
						4d33f356a6
					
				
					 10 changed files with 243 additions and 116 deletions
				
			
		| 
						 | 
				
			
			@ -56,19 +56,19 @@ You can now define up to 32 macros in your `keymap.json` file, as used by [QMK C
 | 
			
		|||
    "keyboard": "handwired/my_macropad",
 | 
			
		||||
    "keymap": "my_keymap",
 | 
			
		||||
    "macros": [
 | 
			
		||||
        [ // first listed is MACRO_0...
 | 
			
		||||
        [ // first listed is QK_MACRO_0...
 | 
			
		||||
            {"action":"down", "keycodes": ["LSFT"]},
 | 
			
		||||
            "hello world1",
 | 
			
		||||
            {"action": "up","keycodes": ["LSFT"]}
 | 
			
		||||
        ],
 | 
			
		||||
        [ // ...then MACRO_1...
 | 
			
		||||
        [ // ...then QK_MACRO_1...
 | 
			
		||||
            {"action":"tap", "keycodes": ["LCTL", "LALT", "DEL"]}
 | 
			
		||||
        ],
 | 
			
		||||
        [ // ...then MACRO_2...
 | 
			
		||||
        [ // ...then QK_MACRO_2...
 | 
			
		||||
            "ding!",
 | 
			
		||||
            {"action":"beep"}
 | 
			
		||||
        ],
 | 
			
		||||
        [ // ...and MACRO_3.
 | 
			
		||||
        [ // ...and QK_MACRO_3.
 | 
			
		||||
            {"action":"tap", "keycodes": ["F1"]},
 | 
			
		||||
            {"action":"delay", "duration": "1000"},
 | 
			
		||||
            {"action":"tap", "keycodes": ["PGDN"]}
 | 
			
		||||
| 
						 | 
				
			
			@ -76,7 +76,7 @@ You can now define up to 32 macros in your `keymap.json` file, as used by [QMK C
 | 
			
		|||
    ],
 | 
			
		||||
    "layout": "LAYOUT_all",
 | 
			
		||||
    "layers": [
 | 
			
		||||
        ["MACRO_0", "MACRO_1", "MACRO_2", "MACRO_3"]
 | 
			
		||||
        ["QK_MACRO_0", "QK_MACRO_1", "QK_MACRO_2", "QK_MACRO_3"]
 | 
			
		||||
    ]
 | 
			
		||||
}
 | 
			
		||||
```
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue