Keymap introspection for combos. (#19670)
This commit is contained in:
		
							parent
							
								
									433dc60686
								
							
						
					
					
						commit
						5faa23d54c
					
				
					 226 changed files with 533 additions and 729 deletions
				
			
		| 
						 | 
				
			
			@ -1,19 +1,18 @@
 | 
			
		|||
/* Copyright 2020 Austin "TuckTuckFloof" Ashmore
 | 
			
		||||
* 
 | 
			
		||||
* This program is free software: you can redistribute it and/or modify 
 | 
			
		||||
* it under the terms of the GNU General Public License as published by 
 | 
			
		||||
* the Free Software Foundation, either version 2 of the License, or 
 | 
			
		||||
* (at your option) any later version. 
 | 
			
		||||
* 
 | 
			
		||||
* This program is distributed in the hope that it will be useful, 
 | 
			
		||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of 
 | 
			
		||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
 | 
			
		||||
* GNU General Public License for more details. 
 | 
			
		||||
* You should have received a copy of the GNU General Public License 
 | 
			
		||||
* along with this program.  If not, see <http://www.gnu.org/licenses/>. 
 | 
			
		||||
*/ 
 | 
			
		||||
*
 | 
			
		||||
* This program is free software: you can redistribute it and/or modify
 | 
			
		||||
* it under the terms of the GNU General Public License as published by
 | 
			
		||||
* the Free Software Foundation, either version 2 of the License, or
 | 
			
		||||
* (at your option) any later version.
 | 
			
		||||
*
 | 
			
		||||
* This program is distributed in the hope that it will be useful,
 | 
			
		||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
 | 
			
		||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 | 
			
		||||
* GNU General Public License for more details.
 | 
			
		||||
* You should have received a copy of the GNU General Public License
 | 
			
		||||
* along with this program.  If not, see <http://www.gnu.org/licenses/>.
 | 
			
		||||
*/
 | 
			
		||||
 | 
			
		||||
#pragma once
 | 
			
		||||
 | 
			
		||||
#define COMBO_COUNT 5
 | 
			
		||||
#define COMBO_TERM 175
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,16 +1,16 @@
 | 
			
		|||
/* Copyright 2020 Austin "TuckTuckFloof" Ashmore
 | 
			
		||||
* 
 | 
			
		||||
* This program is free software: you can redistribute it and/or modify 
 | 
			
		||||
* it under the terms of the GNU General Public License as published by 
 | 
			
		||||
* the Free Software Foundation, either version 2 of the License, or 
 | 
			
		||||
* (at your option) any later version. 
 | 
			
		||||
* 
 | 
			
		||||
* This program is distributed in the hope that it will be useful, 
 | 
			
		||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of 
 | 
			
		||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
 | 
			
		||||
* GNU General Public License for more details. 
 | 
			
		||||
* You should have received a copy of the GNU General Public License 
 | 
			
		||||
* along with this program.  If not, see <http://www.gnu.org/licenses/>. 
 | 
			
		||||
*
 | 
			
		||||
* This program is free software: you can redistribute it and/or modify
 | 
			
		||||
* it under the terms of the GNU General Public License as published by
 | 
			
		||||
* the Free Software Foundation, either version 2 of the License, or
 | 
			
		||||
* (at your option) any later version.
 | 
			
		||||
*
 | 
			
		||||
* This program is distributed in the hope that it will be useful,
 | 
			
		||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
 | 
			
		||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 | 
			
		||||
* GNU General Public License for more details.
 | 
			
		||||
* You should have received a copy of the GNU General Public License
 | 
			
		||||
* along with this program.  If not, see <http://www.gnu.org/licenses/>.
 | 
			
		||||
*/
 | 
			
		||||
 | 
			
		||||
#include QMK_KEYBOARD_H
 | 
			
		||||
| 
						 | 
				
			
			@ -31,7 +31,7 @@ enum WOMBO_COMBOS {
 | 
			
		|||
const uint16_t PROGMEM VOLUME_UP_COMBO[] = { KC_F1, KC_F2, COMBO_END };
 | 
			
		||||
const uint16_t PROGMEM VOLUME_DN_COMBO[] = { KC_F3, KC_F4, COMBO_END };
 | 
			
		||||
 | 
			
		||||
combo_t key_combos[COMBO_COUNT] = {
 | 
			
		||||
combo_t key_combos[] = {
 | 
			
		||||
    [VOLUME_UP] = COMBO(VOLUME_UP_COMBO, KC_VOLU),
 | 
			
		||||
    [VOLUME_DOWN] = COMBO(VOLUME_DN_COMBO, KC_VOLD)
 | 
			
		||||
};
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,19 +1,18 @@
 | 
			
		|||
/* Copyright 2020 Austin "TuckTuckFloof" Ashmore
 | 
			
		||||
*
 | 
			
		||||
* This program is free software: you can redistribute it and/or modify 
 | 
			
		||||
* it under the terms of the GNU General Public License as published by 
 | 
			
		||||
* the Free Software Foundation, either version 2 of the License, or 
 | 
			
		||||
* (at your option) any later version. 
 | 
			
		||||
* This program is free software: you can redistribute it and/or modify
 | 
			
		||||
* it under the terms of the GNU General Public License as published by
 | 
			
		||||
* the Free Software Foundation, either version 2 of the License, or
 | 
			
		||||
* (at your option) any later version.
 | 
			
		||||
*
 | 
			
		||||
* This program is distributed in the hope that it will be useful, 
 | 
			
		||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of 
 | 
			
		||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
 | 
			
		||||
* GNU General Public License for more details. 
 | 
			
		||||
* You should have received a copy of the GNU General Public License 
 | 
			
		||||
* along with this program.  If not, see <http://www.gnu.org/licenses/>. 
 | 
			
		||||
* This program is distributed in the hope that it will be useful,
 | 
			
		||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
 | 
			
		||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 | 
			
		||||
* GNU General Public License for more details.
 | 
			
		||||
* You should have received a copy of the GNU General Public License
 | 
			
		||||
* along with this program.  If not, see <http://www.gnu.org/licenses/>.
 | 
			
		||||
*/
 | 
			
		||||
 | 
			
		||||
#pragma once
 | 
			
		||||
 | 
			
		||||
#define COMBO_COUNT 5
 | 
			
		||||
#define COMBO_TERM 175
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,16 +1,16 @@
 | 
			
		|||
/* Copyright 2020 Austin "TuckTuckFloof" Ashmore
 | 
			
		||||
*
 | 
			
		||||
* This program is free software: you can redistribute it and/or modify 
 | 
			
		||||
* it under the terms of the GNU General Public License as published by 
 | 
			
		||||
* the Free Software Foundation, either version 2 of the License, or 
 | 
			
		||||
* (at your option) any later version. 
 | 
			
		||||
* This program is free software: you can redistribute it and/or modify
 | 
			
		||||
* it under the terms of the GNU General Public License as published by
 | 
			
		||||
* the Free Software Foundation, either version 2 of the License, or
 | 
			
		||||
* (at your option) any later version.
 | 
			
		||||
*
 | 
			
		||||
* This program is distributed in the hope that it will be useful, 
 | 
			
		||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of 
 | 
			
		||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
 | 
			
		||||
* GNU General Public License for more details. 
 | 
			
		||||
* You should have received a copy of the GNU General Public License 
 | 
			
		||||
* along with this program.  If not, see <http://www.gnu.org/licenses/>. 
 | 
			
		||||
* This program is distributed in the hope that it will be useful,
 | 
			
		||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
 | 
			
		||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 | 
			
		||||
* GNU General Public License for more details.
 | 
			
		||||
* You should have received a copy of the GNU General Public License
 | 
			
		||||
* along with this program.  If not, see <http://www.gnu.org/licenses/>.
 | 
			
		||||
*/
 | 
			
		||||
 | 
			
		||||
#include QMK_KEYBOARD_H
 | 
			
		||||
| 
						 | 
				
			
			@ -31,7 +31,7 @@ enum WOMBO_COMBOS {
 | 
			
		|||
const uint16_t PROGMEM VOLUME_UP_COMBO[] = { KC_F1, KC_F2, COMBO_END };
 | 
			
		||||
const uint16_t PROGMEM VOLUME_DN_COMBO[] = { KC_F3, KC_F4, COMBO_END };
 | 
			
		||||
 | 
			
		||||
combo_t key_combos[COMBO_COUNT] = {
 | 
			
		||||
combo_t key_combos[] = {
 | 
			
		||||
    [VOLUME_UP] = COMBO(VOLUME_UP_COMBO, KC_VOLU),
 | 
			
		||||
    [VOLUME_DOWN] = COMBO(VOLUME_DN_COMBO, KC_VOLD)
 | 
			
		||||
};
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,19 +1,18 @@
 | 
			
		|||
/* Copyright 2020 Austin "TuckTuckFloof" Ashmore
 | 
			
		||||
*
 | 
			
		||||
* This program is free software: you can redistribute it and/or modify 
 | 
			
		||||
* it under the terms of the GNU General Public License as published by 
 | 
			
		||||
* the Free Software Foundation, either version 2 of the License, or 
 | 
			
		||||
* (at your option) any later version. 
 | 
			
		||||
* This program is free software: you can redistribute it and/or modify
 | 
			
		||||
* it under the terms of the GNU General Public License as published by
 | 
			
		||||
* the Free Software Foundation, either version 2 of the License, or
 | 
			
		||||
* (at your option) any later version.
 | 
			
		||||
*
 | 
			
		||||
* This program is distributed in the hope that it will be useful, 
 | 
			
		||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of 
 | 
			
		||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
 | 
			
		||||
* GNU General Public License for more details. 
 | 
			
		||||
* You should have received a copy of the GNU General Public License 
 | 
			
		||||
* along with this program.  If not, see <http://www.gnu.org/licenses/>. 
 | 
			
		||||
* This program is distributed in the hope that it will be useful,
 | 
			
		||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
 | 
			
		||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 | 
			
		||||
* GNU General Public License for more details.
 | 
			
		||||
* You should have received a copy of the GNU General Public License
 | 
			
		||||
* along with this program.  If not, see <http://www.gnu.org/licenses/>.
 | 
			
		||||
*/
 | 
			
		||||
 | 
			
		||||
#pragma once
 | 
			
		||||
 | 
			
		||||
#define COMBO_COUNT 5
 | 
			
		||||
#define COMBO_TERM 175
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,16 +1,16 @@
 | 
			
		|||
/* Copyright 2020 Austin "TuckTuckFloof" Ashmore
 | 
			
		||||
*
 | 
			
		||||
* This program is free software: you can redistribute it and/or modify 
 | 
			
		||||
* it under the terms of the GNU General Public License as published by 
 | 
			
		||||
* the Free Software Foundation, either version 2 of the License, or 
 | 
			
		||||
* (at your option) any later version. 
 | 
			
		||||
* This program is free software: you can redistribute it and/or modify
 | 
			
		||||
* it under the terms of the GNU General Public License as published by
 | 
			
		||||
* the Free Software Foundation, either version 2 of the License, or
 | 
			
		||||
* (at your option) any later version.
 | 
			
		||||
*
 | 
			
		||||
* This program is distributed in the hope that it will be useful, 
 | 
			
		||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of 
 | 
			
		||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
 | 
			
		||||
* GNU General Public License for more details. 
 | 
			
		||||
* You should have received a copy of the GNU General Public License 
 | 
			
		||||
* along with this program.  If not, see <http://www.gnu.org/licenses/>. 
 | 
			
		||||
* This program is distributed in the hope that it will be useful,
 | 
			
		||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
 | 
			
		||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 | 
			
		||||
* GNU General Public License for more details.
 | 
			
		||||
* You should have received a copy of the GNU General Public License
 | 
			
		||||
* along with this program.  If not, see <http://www.gnu.org/licenses/>.
 | 
			
		||||
*/
 | 
			
		||||
 | 
			
		||||
#include QMK_KEYBOARD_H
 | 
			
		||||
| 
						 | 
				
			
			@ -31,7 +31,7 @@ enum WOMBO_COMBOS {
 | 
			
		|||
const uint16_t PROGMEM VOLUME_UP_COMBO[] = { KC_F1, KC_F2, COMBO_END };
 | 
			
		||||
const uint16_t PROGMEM VOLUME_DN_COMBO[] = { KC_F3, KC_F4, COMBO_END };
 | 
			
		||||
 | 
			
		||||
combo_t key_combos[COMBO_COUNT] = {
 | 
			
		||||
combo_t key_combos[] = {
 | 
			
		||||
    [VOLUME_UP] = COMBO(VOLUME_UP_COMBO, KC_VOLU),
 | 
			
		||||
    [VOLUME_DOWN] = COMBO(VOLUME_DN_COMBO, KC_VOLD)
 | 
			
		||||
};
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue