Skip to content

Commit

Permalink
Move TAPPING_TOGGLE to data driven (qmk#21360)
Browse files Browse the repository at this point in the history
  • Loading branch information
fauxpark authored and csolje committed Oct 21, 2023
1 parent d027c62 commit 9ca9fff
Show file tree
Hide file tree
Showing 47 changed files with 70 additions and 101 deletions.
2 changes: 0 additions & 2 deletions keyboards/bajjak/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define MOUSEKEY_MAX_SPEED 7
#define MOUSEKEY_WHEEL_DELAY 0

#define TAPPING_TOGGLE 1

/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
#define LOCKING_SUPPORT_ENABLE
/* Locking resynchronize hack */
Expand Down
3 changes: 3 additions & 0 deletions keyboards/bajjak/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
},
"processor": "atmega32u4",
"bootloader": "halfkay",
"tapping": {
"toggle": 1
},
"layouts": {
"LAYOUT_6x7": {
"layout": [
Expand Down
2 changes: 0 additions & 2 deletions keyboards/checkerboards/quark_lp/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@
/* Locking resynchronize hack */
#define LOCKING_RESYNC_ENABLE

#define TAPPING_TOGGLE 2

#ifdef RGB_MATRIX_ENABLE
#define RGB_MATRIX_LED_COUNT 51
#define RGB_MATRIX_KEYPRESSES // reacts to keypresses
Expand Down
3 changes: 3 additions & 0 deletions keyboards/checkerboards/quark_lp/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@
"diode_direction": "COL2ROW",
"processor": "atmega32u2",
"bootloader": "atmel-dfu",
"tapping": {
"toggle": 2
},
"layouts": {
"LAYOUT_ortho_4x12": {
"layout": [
Expand Down
2 changes: 0 additions & 2 deletions keyboards/converter/a1200/mistress1200/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.

#pragma once

#define TAPPING_TOGGLE 3

#undef LOCKING_SUPPORT_ENABLE
#undef LOCKING_RESYNC_ENABLE
#define LAYER_STATE_8BIT
Expand Down
5 changes: 4 additions & 1 deletion keyboards/converter/a1200/mistress1200/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,8 @@
"on_state": 0
},
"processor": "atmega16u4",
"bootloader": "atmel-dfu"
"bootloader": "atmel-dfu",
"tapping": {
"toggle": 3
}
}
20 changes: 0 additions & 20 deletions keyboards/dumbpad/config.h

This file was deleted.

3 changes: 3 additions & 0 deletions keyboards/dumbpad/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,8 @@
"usb": {
"vid": "0xDEAF",
"pid": "0x0913"
},
"tapping": {
"toggle": 2
}
}
17 changes: 0 additions & 17 deletions keyboards/dumbpad/v1x_oled/config.h

This file was deleted.

2 changes: 0 additions & 2 deletions keyboards/ergodox_ez/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define MOUSEKEY_WHEEL_MAX_SPEED MOUSEKEY_MAX_SPEED
#define MOUSEKEY_WHEEL_TIME_TO_MAX MOUSEKEY_TIME_TO_MAX

#define TAPPING_TOGGLE 1

/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
#define LOCKING_SUPPORT_ENABLE
/* Locking resynchronize hack */
Expand Down
3 changes: 3 additions & 0 deletions keyboards/ergodox_ez/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@
"processor": "atmega32u4",
"bootloader": "halfkay",
"debounce": 30,
"tapping": {
"toggle": 1
},
"community_layouts": ["ergodox"],
"layouts": {
"LAYOUT_ergodox": {
Expand Down
5 changes: 0 additions & 5 deletions keyboards/fungo/rev1/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,3 @@

/* Locking resynchronize hack */
#define LOCKING_RESYNC_ENABLE

//지정된 횟수로 눌러야 토글됨
#define TAPPING_TOGGLE 3


3 changes: 3 additions & 0 deletions keyboards/fungo/rev1/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@
"processor": "atmega32u4",
"bootloader": "caterina",
"debounce": 3,
"tapping": {
"toggle": 3
},
"layout_aliases": {
"LAYOUT_fungo_split_num": "LAYOUT"
},
Expand Down
1 change: 0 additions & 1 deletion keyboards/gboards/ergotaco/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define MOUSEKEY_TIME_TO_MAX 60
#define MOUSEKEY_MAX_SPEED 7
#define MOUSEKEY_WHEEL_DELAY 0
#define TAPPING_TOGGLE 1

/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
#define LOCKING_SUPPORT_ENABLE
Expand Down
3 changes: 3 additions & 0 deletions keyboards/gboards/ergotaco/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
},
"processor": "atmega32u4",
"bootloader": "atmel-dfu",
"tapping": {
"toggle": 1
},
"layouts": {
"LAYOUT": {
"layout": [
Expand Down
1 change: 0 additions & 1 deletion keyboards/gboards/georgi/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define MOUSEKEY_TIME_TO_MAX 60
#define MOUSEKEY_MAX_SPEED 7
#define MOUSEKEY_WHEEL_DELAY 0
#define TAPPING_TOGGLE 2

/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
#define LOCKING_SUPPORT_ENABLE
Expand Down
3 changes: 3 additions & 0 deletions keyboards/gboards/georgi/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@
},
"processor": "atmega32u4",
"bootloader": "atmel-dfu",
"tapping": {
"toggle": 2
},
"layout_aliases": {
"LAYOUT_georgi": "LAYOUT"
},
Expand Down
1 change: 0 additions & 1 deletion keyboards/gboards/gergo/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define MOUSEKEY_TIME_TO_MAX 60
#define MOUSEKEY_MAX_SPEED 7
#define MOUSEKEY_WHEEL_DELAY 0
#define TAPPING_TOGGLE 1

/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
#define LOCKING_SUPPORT_ENABLE
Expand Down
3 changes: 3 additions & 0 deletions keyboards/gboards/gergo/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@
},
"processor": "atmega32u4",
"bootloader": "atmel-dfu",
"tapping": {
"toggle": 1
},
"layout_aliases": {
"LAYOUT_gergo": "LAYOUT"
},
Expand Down
2 changes: 0 additions & 2 deletions keyboards/handwired/dactyl/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define MOUSEKEY_MAX_SPEED 7
#define MOUSEKEY_WHEEL_DELAY 0

#define TAPPING_TOGGLE 1

/* key combination for command */
#define IS_COMMAND() ( \
get_mods() == (MOD_BIT(KC_LCTL) | MOD_BIT(KC_RCTL)) || \
Expand Down
3 changes: 3 additions & 0 deletions keyboards/handwired/dactyl/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@
"processor": "atmega32u4",
"bootloader": "halfkay",
"debounce": 15,
"tapping": {
"toggle": 1
},
"layouts": {
"LAYOUT_dactyl": {
"layout": [
Expand Down
3 changes: 0 additions & 3 deletions keyboards/handwired/dactyl_rah/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define MOUSEKEY_MAX_SPEED 7
#define MOUSEKEY_WHEEL_DELAY 0

/* layer config */
#define TAPPING_TOGGLE 1

/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
#define LOCKING_SUPPORT_ENABLE

Expand Down
3 changes: 3 additions & 0 deletions keyboards/handwired/dactyl_rah/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@
},
"processor": "atmega32u4",
"bootloader": "caterina",
"tapping": {
"toggle": 1
},
"layouts": {
"LAYOUT_6x6": {
"layout": [
Expand Down
2 changes: 0 additions & 2 deletions keyboards/handwired/frenchdev/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define MOUSEKEY_MAX_SPEED 2
#define MOUSEKEY_WHEEL_DELAY 0

#define TAPPING_TOGGLE 1

/* key combination for command */
#define IS_COMMAND() ( \
get_mods() == (MOD_BIT(KC_LCTL) | MOD_BIT(KC_RCTL)) || \
Expand Down
3 changes: 3 additions & 0 deletions keyboards/handwired/frenchdev/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
},
"processor": "atmega32u4",
"bootloader": "halfkay",
"tapping": {
"toggle": 1
},
"layouts": {
"LAYOUT": {
"layout": [
Expand Down
1 change: 0 additions & 1 deletion keyboards/handwired/jopr/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
#define LOCKING_RESYNC_ENABLE

#define NO_ACTION_ONESHOT
#define TAPPING_TOGGLE 3

#define RGBLIGHT_HUE_STEP 1
#define RGBLIGHT_SAT_STEP 1
Expand Down
3 changes: 3 additions & 0 deletions keyboards/handwired/jopr/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@
"diode_direction": "COL2ROW",
"processor": "atmega32u4",
"bootloader": "atmel-dfu",
"tapping": {
"toggle": 3
},
"layouts": {
"LAYOUT": {
"layout": [
Expand Down
2 changes: 0 additions & 2 deletions keyboards/handwired/kbod/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,3 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
//#define NO_ACTION_LAYER
//#define NO_ACTION_TAPPING
//#define NO_ACTION_ONESHOT

#define TAPPING_TOGGLE 2
3 changes: 3 additions & 0 deletions keyboards/handwired/kbod/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@
},
"processor": "atmega32u4",
"bootloader": "caterina",
"tapping": {
"toggle": 2
},
"layouts": {
"LAYOUT": {
"layout": [
Expand Down
2 changes: 0 additions & 2 deletions keyboards/handwired/pterodactyl/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define MOUSEKEY_MAX_SPEED 7
#define MOUSEKEY_WHEEL_DELAY 0

#define TAPPING_TOGGLE 1

/* key combination for command */
#define IS_COMMAND() ( \
get_mods() == (MOD_BIT(KC_LCTL) | MOD_BIT(KC_RCTL)) || \
Expand Down
3 changes: 3 additions & 0 deletions keyboards/handwired/pterodactyl/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@
"processor": "atmega32u4",
"bootloader": "caterina",
"debounce": 0,
"tapping": {
"toggle": 1
},
"layouts": {
"LAYOUT_pterodactyl": {
"layout": [
Expand Down
3 changes: 0 additions & 3 deletions keyboards/handwired/terminus_mini/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.

#pragma once

//define tapping-toggle count
#define TAPPING_TOGGLE 1

//define maximum duration of hold required to register a tap vs hold default is 200
#define TAPPING_TERM 150 //reduce time required to register a held key

Expand Down
3 changes: 3 additions & 0 deletions keyboards/handwired/terminus_mini/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@
"diode_direction": "COL2ROW",
"processor": "atmega32u4",
"bootloader": "halfkay",
"tapping": {
"toggle": 1
},
"layouts": {
"LAYOUT": {
"layout": [
Expand Down
2 changes: 0 additions & 2 deletions keyboards/hotdox/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@
#define MOUSEKEY_MAX_SPEED 7
#define MOUSEKEY_WHEEL_DELAY 0

#define TAPPING_TOGGLE 1

/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
#define LOCKING_SUPPORT_ENABLE
/* Locking resynchronize hack */
Expand Down
3 changes: 3 additions & 0 deletions keyboards/hotdox/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@
},
"processor": "atmega32u4",
"bootloader": "atmel-dfu",
"tapping": {
"toggle": 1
},
"community_layouts": ["ergodox"],
"layouts": {
"LAYOUT_ergodox": {
Expand Down
2 changes: 0 additions & 2 deletions keyboards/input_club/ergodox_infinity/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define MOUSEKEY_MAX_SPEED 7
#define MOUSEKEY_WHEEL_DELAY 0

#define TAPPING_TOGGLE 1

/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
#define LOCKING_SUPPORT_ENABLE
/* Locking resynchronize hack */
Expand Down
3 changes: 3 additions & 0 deletions keyboards/input_club/ergodox_infinity/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@
"processor": "MK20DX256",
"bootloader": "kiibohd",
"board": "IC_TEENSY_3_1",
"tapping": {
"toggle": 1
},
"community_layouts": ["ergodox"],
"layouts": {
"LAYOUT_ergodox": {
Expand Down
2 changes: 0 additions & 2 deletions keyboards/nack/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.

#pragma once

#define TAPPING_TOGGLE 2

#ifdef RGB_MATRIX_ENABLE
#define WS2812_SPI SPID1
#define WS2812_SPI_MOSI_PAL_MODE 5
Expand Down
3 changes: 3 additions & 0 deletions keyboards/nack/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@
"processor": "STM32F303",
"bootloader": "stm32-dfu",
"board": "QMK_PROTON_C",
"tapping": {
"toggle": 2
},
"layout_aliases": {
"LAYOUT": "LAYOUT_ortho_4x13"
},
Expand Down
Loading

0 comments on commit 9ca9fff

Please sign in to comment.