Browse Source

[Core] Process all changed keys in one scan loop, deprecate `QMK_KEYS_PER_SCAN` (#15292)

pull/17393/merge
Stefan Kerkmann 1 year ago
committed by GitHub
parent
commit
f27b617f36
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
96 changed files with 86 additions and 603 deletions
  1. +1
    -1
      data/mappings/info_config.json
  2. +0
    -9
      docs/config_options.md
  3. +0
    -2
      docs/ja/config_options.md
  4. +0
    -2
      keyboards/40percentclub/gherkin/keymaps/stevexyz/config.h
  5. +0
    -20
      keyboards/ai03/jp60/keymaps/default/config.h
  6. +0
    -20
      keyboards/ai03/jp60/keymaps/via/config.h
  7. +0
    -2
      keyboards/bioi/morgan65/config.h
  8. +0
    -3
      keyboards/doio/kb16/config.h
  9. +0
    -2
      keyboards/dztech/dz60rgb/keymaps/kgreulich/config.h
  10. +0
    -2
      keyboards/dztech/dz60rgb/keymaps/matthewrobo/config.h
  11. +0
    -2
      keyboards/dztech/dz60rgb/keymaps/xunz/config.h
  12. +0
    -2
      keyboards/dztech/dz65rgb/keymaps/matthewrobo/config.h
  13. +0
    -2
      keyboards/dztech/dz65rgb/keymaps/yuannan/config.h
  14. +0
    -2
      keyboards/ergodox_ez/keymaps/dvorak_42_key/keymap.c
  15. +0
    -1
      keyboards/ergodox_ez/keymaps/hacker_dvorak/config.h
  16. +1
    -5
      keyboards/ergodox_ez/keymaps/rgb_layer/config.h
  17. +0
    -1
      keyboards/ergodox_ez/keymaps/rmw/config.h
  18. +0
    -2
      keyboards/eternal_keypad/keymaps/kyek/config.h
  19. +0
    -4
      keyboards/gmmk/gmmk2/p96/config.h
  20. +0
    -3
      keyboards/gmmk/pro/config.h
  21. +0
    -3
      keyboards/gopolar/gg86/config.h
  22. +1
    -1
      keyboards/handwired/marauder/config.h
  23. +0
    -1
      keyboards/handwired/xealous/config.h
  24. +0
    -3
      keyboards/horrortroll/chinese_pcb/black_e65/config.h
  25. +0
    -3
      keyboards/horrortroll/chinese_pcb/devil68_pro/config.h
  26. +0
    -3
      keyboards/horrortroll/handwired_k552/config.h
  27. +0
    -3
      keyboards/horrortroll/lemon40/config.h
  28. +0
    -3
      keyboards/horrortroll/paws60/config.h
  29. +0
    -2
      keyboards/ianklug/grooveboard/config.h
  30. +0
    -19
      keyboards/jadookb/jkb2/keymaps/via/config.h
  31. +0
    -19
      keyboards/jadookb/jkb65/keymaps/via/config.h
  32. +0
    -2
      keyboards/kbdfans/kbd67/mkiirgb/keymaps/dnsnrk/config.h
  33. +0
    -3
      keyboards/kbdfans/kbd67/mkiirgb/keymaps/pascalpfeil/config.h
  34. +0
    -4
      keyboards/keystonecaps/gameroyadvance/config.h
  35. +1
    -4
      keyboards/kprepublic/bm40hsrgb/keymaps/34keys/config.h
  36. +0
    -3
      keyboards/kprepublic/bm40hsrgb/keymaps/gabustoledo/config.h
  37. +0
    -1
      keyboards/kprepublic/bm68hsrgb/rev1/keymaps/peepeetee/config.h
  38. +0
    -1
      keyboards/kprepublic/bm80hsrgb/keymaps/peepeetee/config.h
  39. +0
    -2
      keyboards/kprepublic/jj40/keymaps/stevexyz/config.h
  40. +0
    -3
      keyboards/lets_split/keymaps/piemod/config.h
  41. +0
    -3
      keyboards/lfkeyboards/lfkpad/keymaps/pascalpfeil/config.h
  42. +0
    -1
      keyboards/maple_computing/minidox/keymaps/norman/config.h
  43. +0
    -1
      keyboards/massdrop/alt/keymaps/b_/config.h
  44. +0
    -1
      keyboards/massdrop/alt/keymaps/pregame/config.h
  45. +0
    -1
      keyboards/massdrop/ctrl/keymaps/endgame/config.h
  46. +0
    -1
      keyboards/massdrop/ctrl/keymaps/matthewrobo/config.h
  47. +0
    -1
      keyboards/massdrop/ctrl/keymaps/xanimos/config.h
  48. +0
    -3
      keyboards/ml/gas75/config.h
  49. +0
    -1
      keyboards/mmkzoo65/config.h
  50. +0
    -3
      keyboards/mss_studio/m63_rgb/config.h
  51. +0
    -3
      keyboards/mss_studio/m64_rgb/config.h
  52. +0
    -4
      keyboards/mwstudio/mw65_rgb/keymaps/horrortroll/config.h
  53. +0
    -4
      keyboards/mwstudio/mw65_rgb/keymaps/thearesia/config.h
  54. +0
    -4
      keyboards/pierce/keymaps/durken1/config.h
  55. +0
    -2
      keyboards/rgbkb/zen/rev1/keymaps/cwebster2/config.h
  56. +0
    -2
      keyboards/sanctified/dystopia/config.h
  57. +0
    -3
      keyboards/signum/3_0/keymaps/sgurenkov/config.h
  58. +0
    -3
      keyboards/skme/zeno/config.h
  59. +0
    -1
      keyboards/sofle/keymaps/killmaster/config.h
  60. +0
    -2
      keyboards/splitkb/kyria/keymaps/cwebster2/config.h
  61. +0
    -2
      keyboards/synthlabs/solo/config.h
  62. +0
    -18
      keyboards/xelus/dharma/keymaps/default/config.h
  63. +0
    -18
      keyboards/xelus/dharma/keymaps/via/config.h
  64. +0
    -18
      keyboards/xelus/kangaroo/keymaps/default/config.h
  65. +0
    -18
      keyboards/xelus/kangaroo/keymaps/via/config.h
  66. +0
    -19
      keyboards/xelus/la_plus/keymaps/default/config.h
  67. +0
    -2
      keyboards/xelus/la_plus/keymaps/via/config.h
  68. +0
    -18
      keyboards/xelus/pachi/mini_32u4/keymaps/default/config.h
  69. +0
    -2
      keyboards/xelus/pachi/mini_32u4/keymaps/via/config.h
  70. +0
    -18
      keyboards/xelus/pachi/rev1/keymaps/default/config.h
  71. +0
    -2
      keyboards/xelus/pachi/rev1/keymaps/via/config.h
  72. +0
    -18
      keyboards/xelus/pachi/rgb/keymaps/default/config.h
  73. +0
    -2
      keyboards/xelus/pachi/rgb/keymaps/via/config.h
  74. +0
    -18
      keyboards/xelus/rs60/keymaps/default/config.h
  75. +0
    -18
      keyboards/xelus/rs60/keymaps/via/config.h
  76. +0
    -18
      keyboards/xelus/valor/rev2/keymaps/default/config.h
  77. +0
    -2
      keyboards/xelus/valor/rev2/keymaps/via/config.h
  78. +0
    -18
      keyboards/xelus/valor_frl_tkl/keymaps/default/config.h
  79. +0
    -18
      keyboards/xelus/valor_frl_tkl/keymaps/via/config.h
  80. +0
    -18
      keyboards/xelus/xs60/keymaps/default/config.h
  81. +0
    -2
      keyboards/xelus/xs60/keymaps/via/config.h
  82. +0
    -1
      keyboards/xiudi/xd75/keymaps/tdl-jturner/config.h
  83. +0
    -2
      layouts/community/65_ansi_blocker/brandonschlack/config.h
  84. +0
    -2
      layouts/community/65_ansi_blocker_split_bs/brandonschlack-split/config.h
  85. +74
    -64
      quantum/keyboard.c
  86. +7
    -1
      quantum/keyboard.h
  87. +0
    -22
      tests/basic/test_keypress.cpp
  88. +1
    -2
      tests/tap_dance/test_examples.cpp
  89. +0
    -4
      users/curry/config.h
  90. +0
    -4
      users/drashna/post_config.h
  91. +0
    -1
      users/ishtob/config.h
  92. +0
    -3
      users/issmirnov/config.h
  93. +0
    -4
      users/kuchosauronad0/config.h
  94. +0
    -4
      users/miles2go/config.h
  95. +0
    -4
      users/yet-another-developer/config.h
  96. +0
    -4
      users/zer09/config.h

+ 1
- 1
data/mappings/info_config.json View File

@ -82,7 +82,6 @@
"VENDOR_ID": {"info_key": "usb.vid", "value_type": "hex"},
"QMK_ESC_OUTPUT": {"info_key": "qmk_lufa_bootloader.esc_output"},
"QMK_ESC_INPUT": {"info_key": "qmk_lufa_bootloader.esc_input"},
"QMK_KEYS_PER_SCAN": {"info_key": "qmk.keys_per_scan", "value_type": "int"},
"QMK_LED": {"info_key": "qmk_lufa_bootloader.led"},
"QMK_SPEAKER": {"info_key": "qmk_lufa_bootloader.speaker"},
"SECURE_UNLOCK_SEQUENCE": {"info_key": "secure.unlock_sequence", "value_type": "array.array.int", "to_json": false},
@ -114,4 +113,5 @@
"DEBOUNCING_DELAY": {"info_key": "_invalid.debouncing_delay", "invalid": true},
"PREVENT_STUCK_MODIFIERS": {"info_key": "_invalid.prevent_stuck_mods", "invalid": true},
"RGBLIGHT_ANIMATIONS": {"info_key": "rgblight.animations.all", "value_type": "bool", "deprecated": true},
"QMK_KEYS_PER_SCAN": {"info_key": "qmk.keys_per_scan", "value_type": "int", "deprecated": true},
}

+ 0
- 9
docs/config_options.md View File

@ -182,15 +182,6 @@ If you define these options you will enable the associated feature, which may in
* how long before oneshot times out
* `#define ONESHOT_TAP_TOGGLE 2`
* how many taps before oneshot toggle is triggered
* `#define QMK_KEYS_PER_SCAN 4`
* Allows sending more than one key per scan. By default, only one key event gets
sent via `process_record()` per scan. This has little impact on most typing, but
if you're doing a lot of chords, or your scan rate is slow to begin with, you can
have some delay in processing key events. Each press and release is a separate
event. For a keyboard with 1ms or so scan times, even a very fast typist isn't
going to produce the 500 keystrokes a second needed to actually get more than a
few ms of delay from this. But if you're doing chording on something with 3-4ms
scan times? You probably want this.
* `#define COMBO_COUNT 2`
* Set this to the number of combos that you're using in the [Combo](feature_combo.md) feature. Or leave it undefined and programmatically set the count.
* `#define COMBO_TERM 200`


+ 0
- 2
docs/ja/config_options.md View File

@ -181,8 +181,6 @@ QMK での全ての利用可能な設定にはデフォルトがあります。
* ワンショットがタイムアウトするまでの時間
* `#define ONESHOT_TAP_TOGGLE 2`
* ワンショットトグルが引き起こされるまでのタップ数
* `#define QMK_KEYS_PER_SCAN 4`
* 走査ごとに1つ以上のキーを送信できるようにします。デフォルトでは、走査ごとに `process_record()` 経由で1つのキーイベントのみが送信されます。これはほとんどのタイピングにほとんど影響しませんが、多くのコードを入力しているか、走査レートが最初から遅い場合、キーイベントの処理に多少の遅延が生じる可能性があります。それぞれのプレスとリリースは別のイベントです。スキャン時間が 1ms 程度のキーボードの場合、とても高速なタイピストでさえ、実際にキーボードから数 ms 以上の遅延を発生させるのに必要な 500 キーストロークを1秒間に生成することはないでしょう。しかし、3~4ms の走査時間でコードを入力している場合はどうでしょうか?おそらくこれが必要です。
* `#define COMBO_COUNT 2`
* [コンボ](ja/feature_combo.md)機能で使っているコンボの数にこれを設定します。
* `#define COMBO_TERM 200`


+ 0
- 2
keyboards/40percentclub/gherkin/keymaps/stevexyz/config.h View File

@ -39,8 +39,6 @@
// how long before oneshot times out
#define ONESHOT_TAP_TOGGLE 2
// how many taps before oneshot toggle is triggered
#define QMK_KEYS_PER_SCAN 4
// Allows sending more than one key per scan. By default, only one key event gets sent via process_record() per scan. This has little impact on most typing, but if you're doing a lot of chords, or your scan rate is slow to begin with, you can have some delay in processing key events. Each press and release is a separate event. For a keyboard with 1ms or so scan times, even a very fast typist isn't going to produce the 500 keystrokes a second needed to actually get more than a few ms of delay from this. But if you're doing chording on something with 3-4ms scan times? You probably want this.
#define COMBO_COUNT 2
// Set this to the number of combos that you're using in the Combo feature.
#define COMBO_TERM 200


+ 0
- 20
keyboards/ai03/jp60/keymaps/default/config.h View File

@ -1,20 +0,0 @@
/* Copyright 2021 ai03
*
* 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
/* Increase scan quantity for improved performance */
#define QMK_KEYS_PER_SCAN 12

+ 0
- 20
keyboards/ai03/jp60/keymaps/via/config.h View File

@ -1,20 +0,0 @@
/* Copyright 2021 ai03
*
* 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
/* Increase scan quantity for improved performance */
#define QMK_KEYS_PER_SCAN 12

+ 0
- 2
keyboards/bioi/morgan65/config.h View File

@ -37,8 +37,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define MATRIX_ROW_PINS { E6, C6, F4, B2, D4 }
#define MATRIX_COL_PINS { F5, F6, F7, C7, B0, B7, B5, D5, B4, D7, D6, D1, D0, B3 }
//#define QMK_KEYS_PER_SCAN 4
/* Backlight Setup */
#define BACKLIGHT_PIN B6
#define BACKLIGHT_LEVELS 12


+ 0
- 3
keyboards/doio/kb16/config.h View File

@ -39,9 +39,6 @@
/* Forcing to use NKRO instead 6KRO */
#define FORCE_NKRO
/* Larger keys per scan */
#define QMK_KEYS_PER_SCAN 12
/* Use the custom font */
#define OLED_FONT_H "lib/glcdfont.c"


+ 0
- 2
keyboards/dztech/dz60rgb/keymaps/kgreulich/config.h View File

@ -7,8 +7,6 @@
#define TAP_HOLD_CAPS_DELAY 0
#define USB_POLLING_INTERVAL_MS 1
#define QMK_KEYS_PER_SCAN 4
// some speed shit
#define NO_ACTION_MACRO
#define NO_ACTION_FUNCTION


+ 0
- 2
keyboards/dztech/dz60rgb/keymaps/matthewrobo/config.h View File

@ -51,8 +51,6 @@
// #undef ENABLE_RGB_MATRIX_SOLID_SPLASH
// #undef ENABLE_RGB_MATRIX_SOLID_MULTISPLASH
#define QMK_KEYS_PER_SCAN 4
// #define RGB_MATRIX_KEYRELEASES
// some speed shit


+ 0
- 2
keyboards/dztech/dz60rgb/keymaps/xunz/config.h View File

@ -46,8 +46,6 @@
// #undef ENABLE_RGB_MATRIX_SOLID_SPLASH
// #undef ENABLE_RGB_MATRIX_SOLID_MULTISPLASH
#define QMK_KEYS_PER_SCAN 4
// #define RGB_MATRIX_KEYRELEASES
#define NO_ACTION_ONESHOT


+ 0
- 2
keyboards/dztech/dz65rgb/keymaps/matthewrobo/config.h View File

@ -47,8 +47,6 @@
// #undef ENABLE_RGB_MATRIX_SOLID_SPLASH
// #undef ENABLE_RGB_MATRIX_SOLID_MULTISPLASH
#define QMK_KEYS_PER_SCAN 4
// #define RGB_MATRIX_KEYRELEASES
// some speed shit


+ 0
- 2
keyboards/dztech/dz65rgb/keymaps/yuannan/config.h View File

@ -30,8 +30,6 @@
#define RGB_MATRIX_VAL_STEP 8
#define RGB_MATRIX_SPD_STEP 8
//#define QMK_KEYS_PER_SCAN 12nn
#define MOUSEKEY_DELAY 0
#define MOUSEKEY_INTERVAL 1
#define MOUSEKEY_MOVE_DELTA 1


+ 0
- 2
keyboards/ergodox_ez/keymaps/dvorak_42_key/keymap.c View File

@ -20,8 +20,6 @@
// debounce settings
// remove these after getting a new keyboard
// #define DEBOUNCE 50
// #define QMK_KEYS_PER_SCAN 4
enum custom_keycodes {
PLACEHOLDER = SAFE_RANGE, // can always be here


+ 0
- 1
keyboards/ergodox_ez/keymaps/hacker_dvorak/config.h View File

@ -25,7 +25,6 @@
#define LEADER_TIMEOUT 1000
#define PERMISSIVE_HOLD
#define QMK_KEYS_PER_SCAN 4
#define DANCING_TERM 175
#define ONESHOT_TAP_TOGGLE 5


+ 1
- 5
keyboards/ergodox_ez/keymaps/rgb_layer/config.h View File

@ -2,13 +2,9 @@
#define KEYMAP_CONFIG_H
#define RGBLIGHT_SLEEP
#define RGBLIGHT_SLEEP
#ifndef QMK_KEYS_PER_SCAN
#define QMK_KEYS_PER_SCAN 4
#endif // !QMK_KEYS_PER_SCAN
#define IGNORE_MOD_TAP_INTERRUPT
#undef PERMISSIVE_HOLD


+ 0
- 1
keyboards/ergodox_ez/keymaps/rmw/config.h View File

@ -22,7 +22,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define USB_MAX_POWER_CONSUMPTION 500
#define QMK_KEYS_PER_SCAN 4
/* Set 0 if debouncing isn't needed */
#undef DEBOUNCE
#define DEBOUNCE 5


+ 0
- 2
keyboards/eternal_keypad/keymaps/kyek/config.h View File

@ -17,5 +17,3 @@
#define ONESHOT_TIMEOUT 2000
#define FORCE_NKRO
#define USB_POLLING_INTERVAL_MS 1
#define QMK_KEYS_PER_SCAN 12

+ 0
- 4
keyboards/gmmk/gmmk2/p96/config.h View File

@ -119,10 +119,6 @@
#define ENABLE_RGB_MATRIX_SOLID_SPLASH
#define ENABLE_RGB_MATRIX_SOLID_MULTISPLASH
/* Send up to 4 key press events per scan */
#define QMK_KEYS_PER_SCAN 4
/* Set debounce time to 5ms */
#define DEBOUNCE 5


+ 0
- 3
keyboards/gmmk/pro/config.h View File

@ -113,9 +113,6 @@
#define ENABLE_RGB_MATRIX_SOLID_SPLASH
#define ENABLE_RGB_MATRIX_SOLID_MULTISPLASH
/* Send up to 4 key press events per scan */
#define QMK_KEYS_PER_SCAN 4
/* Set debounce time to 5ms */
#define DEBOUNCE 5


+ 0
- 3
keyboards/gopolar/gg86/config.h View File

@ -35,9 +35,6 @@
/* Forcing to use NKRO instead 6KRO */
#define FORCE_NKRO
/* Change larger keys per scan for elite gaming */
#define QMK_KEYS_PER_SCAN 12
/* Use the custom font */
#define OLED_FONT_H "lib/glcdfont.c"


+ 1
- 1
keyboards/handwired/marauder/config.h View File

@ -36,7 +36,7 @@
#define MATRIX_COL_PINS { B6, B2, B3, B1, F7, F6, F5, F4, B0 }
#define DIODE_DIRECTION COL2ROW
#define LAYER_STATE_8BIT
#define QMK_KEYS_PER_SCAN 12 // moar gaming code
#define RGB_DI_PIN D3
#ifdef RGB_DI_PIN
#define RGBLED_NUM 7


+ 0
- 1
keyboards/handwired/xealous/config.h View File

@ -29,7 +29,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
//#define DEBUG_MATRIX_SCAN_RATE //Use this to determine scan-rate.
#define FORCE_NKRO
#define QMK_KEYS_PER_SCAN 4 //if we press four keys simultaneously, lets process them simultaneously...
#define DIODE_DIRECTION COL2ROW


+ 0
- 3
keyboards/horrortroll/chinese_pcb/black_e65/config.h View File

@ -38,9 +38,6 @@
/* Forcing to use NKRO instead 6KRO */
#define FORCE_NKRO
/* Change larger keys per scan for elite gaming */
#define QMK_KEYS_PER_SCAN 12
/* LED Indicator */
#define LED_CAPS_LOCK_PIN C7


+ 0
- 3
keyboards/horrortroll/chinese_pcb/devil68_pro/config.h View File

@ -38,9 +38,6 @@
/* Forcing to use NKRO instead 6KRO */
#define FORCE_NKRO
/* Change larger keys per scan for elite gaming */
#define QMK_KEYS_PER_SCAN 12
#ifdef RGB_MATRIX_ENABLE
#define DRIVER_LED_TOTAL 86
#define RGB_MATRIX_MAXIMUM_BRIGHTNESS 200


+ 0
- 3
keyboards/horrortroll/handwired_k552/config.h View File

@ -39,9 +39,6 @@
/* Forcing to use NKRO instead 6KRO */
#define FORCE_NKRO
/* Change larger keys per scan for elite gaming */
#define QMK_KEYS_PER_SCAN 12
/* EEPROM size */
#define EEPROM_PAGE_SIZE
#define FEE_PAGE_SIZE 0x800


+ 0
- 3
keyboards/horrortroll/lemon40/config.h View File

@ -38,9 +38,6 @@
/* Forcing to use NKRO instead 6KRO */
#define FORCE_NKRO
/* Larger keys per scan */
#define QMK_KEYS_PER_SCAN 12
/* RGB light config */
#ifdef RGBLIGHT_ENABLE


+ 0
- 3
keyboards/horrortroll/paws60/config.h View File

@ -37,6 +37,3 @@
/* Forcing to use NKRO instead 6KRO */
#define FORCE_NKRO
/* Larger keys per scan */
#define QMK_KEYS_PER_SCAN 12

+ 0
- 2
keyboards/ianklug/grooveboard/config.h View File

@ -142,5 +142,3 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
/* Bootmagic Lite key configuration */
//#define BOOTMAGIC_LITE_ROW 0
//#define BOOTMAGIC_LITE_COLUMN 0
#define QMK_KEYS_PER_SCAN 4

+ 0
- 19
keyboards/jadookb/jkb2/keymaps/via/config.h View File

@ -1,19 +0,0 @@
/* Copyright 2021 Wizard-GG
*
* 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 QMK_KEYS_PER_SCAN 4

+ 0
- 19
keyboards/jadookb/jkb65/keymaps/via/config.h View File

@ -1,19 +0,0 @@
/* Copyright 2021 Wizard-GG
*
* 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 QMK_KEYS_PER_SCAN 12

+ 0
- 2
keyboards/kbdfans/kbd67/mkiirgb/keymaps/dnsnrk/config.h View File

@ -16,8 +16,6 @@
#pragma once
/* place overrides here */
#undef QMK_KEYS_PER_SCAN
#define QMK_KEYS_PER_SCAN 4
#undef DEBOUNCE
#define DEBOUNCE 8
#undef TAPPING_TOGGLE


+ 0
- 3
keyboards/kbdfans/kbd67/mkiirgb/keymaps/pascalpfeil/config.h View File

@ -19,9 +19,6 @@
/* 1000Hz USB polling */
#define USB_POLLING_INTERVAL_MS 1
/* Send up to 4 key press events per scan */
#define QMK_KEYS_PER_SCAN 4
/* Force NKRO on boot up */
#define FORCE_NKRO


+ 0
- 4
keyboards/keystonecaps/gameroyadvance/config.h View File

@ -55,10 +55,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
/* Locking resynchronize hack */
#define LOCKING_RESYNC_ENABLE
#define QMK_KEYS_PER_SCAN 12
#define RGB_DI_PIN C7
#ifdef RGB_DI_PIN
#define RGBLIGHT_EFFECT_BREATHING


+ 1
- 4
keyboards/kprepublic/bm40hsrgb/keymaps/34keys/config.h View File

@ -14,9 +14,6 @@
// Enable rapid switch from tap to hold, disables double tap hold auto-repeat.
#define TAPPING_FORCE_HOLD
// Recommended for heavy chording.
#define QMK_KEYS_PER_SCAN 4
// Mouse key speed and acceleration.
#undef MOUSEKEY_DELAY
#define MOUSEKEY_DELAY 0
@ -56,4 +53,4 @@
# undef ENABLE_RGB_MATRIX_DIGITAL_RAIN
# undef RGB_MATRIX_STARTUP_MODE
// # define RGBLIGHT_HUE_STEP 20
#endif
#endif

+ 0
- 3
keyboards/kprepublic/bm40hsrgb/keymaps/gabustoledo/config.h View File

@ -30,9 +30,6 @@
#define AUTO_SHIFT_TIMEOUT TAPPING_TERM
#define AUTO_SHIFT_NO_SETUP
// Recommended for heavy chording.
#define QMK_KEYS_PER_SCAN 4
// Mouse key speed and acceleration.
#undef MOUSEKEY_DELAY
#define MOUSEKEY_DELAY 0


+ 0
- 1
keyboards/kprepublic/bm68hsrgb/rev1/keymaps/peepeetee/config.h View File

@ -35,7 +35,6 @@
// #define MOUSEKEY_MAX_SPEED 10
// #define MOUSEKEY_WHEEL_DELAY 0
#define FORCE_NKRO // NKRO by default requires to be turned on, this forces it on during keyboard startup regardless of EEPROM setting. NKRO can still be turned off but will be turned on again if the keyboard reboots.
// #define QMK_KEYS_PER_SCAN 4 // Allows sending more than one key per scan. By default, only one key event gets sent via process_record() per scan. This has little impact on most typing, but if you're doing a lot of chords, or your scan rate is slow to begin with, you can have some delay in processing key events. Each press and release is a separate event. For a keyboard with 1ms or so scan times, even a very fast typist isn't going to produce the 500 keystrokes a second needed to actually get more than a few ms of delay from this. But if you're doing chording on something with 3-4ms scan times? You probably want this.
// #define STRICT_LAYER_RELEASE // Force a key release to be evaluated using the current layer stack instead of remembering which layer it came from (used for advanced cases)
// #define LOCKING_SUPPORT_ENABLE // Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap
// #define LOCKING_RESYNC_ENABLE // Tries to keep switch state consistent with keyboard LED state


+ 0
- 1
keyboards/kprepublic/bm80hsrgb/keymaps/peepeetee/config.h View File

@ -22,7 +22,6 @@
// #define TERMINAL_HELP
#define FORCE_NKRO // NKRO by default requires to be turned on, this forces it on during keyboard startup regardless of EEPROM setting. NKRO can still be turned off but will be turned on again if the keyboard reboots.
// #define QMK_KEYS_PER_SCAN 4 // Allows sending more than one key per scan. By default, only one key event gets sent via process_record() per scan. This has little impact on most typing, but if you're doing a lot of chords, or your scan rate is slow to begin with, you can have some delay in processing key events. Each press and release is a separate event. For a keyboard with 1ms or so scan times, even a very fast typist isn't going to produce the 500 keystrokes a second needed to actually get more than a few ms of delay from this. But if you're doing chording on something with 3-4ms scan times? You probably want this.
// #define STRICT_LAYER_RELEASE // Force a key release to be evaluated using the current layer stack instead of remembering which layer it came from (used for advanced cases)
// #define TAPPING_TERM 200 // How long before a tap becomes a hold, if set above 500, a key tapped during the tapping term will turn it into a hold too
// #define TAPPING_TERM_PER_KEY // Enables handling for per key TAPPING_TERM settings


+ 0
- 2
keyboards/kprepublic/jj40/keymaps/stevexyz/config.h View File

@ -34,8 +34,6 @@
// how long before oneshot times out
#define ONESHOT_TAP_TOGGLE 2
// how many taps before oneshot toggle is triggered
#define QMK_KEYS_PER_SCAN 4
// Allows sending more than one key per scan. By default, only one key event gets sent via process_record() per scan. This has little impact on most typing, but if you're doing a lot of chords, or your scan rate is slow to begin with, you can have some delay in processing key events. Each press and release is a separate event. For a keyboard with 1ms or so scan times, even a very fast typist isn't going to produce the 500 keystrokes a second needed to actually get more than a few ms of delay from this. But if you're doing chording on something with 3-4ms scan times? You probably want this.
#define COMBO_COUNT 2
// Set this to the number of combos that you're using in the Combo feature.
#define COMBO_TERM 200


+ 0
- 3
keyboards/lets_split/keymaps/piemod/config.h View File

@ -42,7 +42,4 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define RGBLIGHT_EFFECT_SNAKE_LENGTH 1
#define RGBLIGHT_EFFECT_KNIGHT_LENGTH 1
// Typing Options
#define QMK_KEYS_PER_SCAN 4
#endif

+ 0
- 3
keyboards/lfkeyboards/lfkpad/keymaps/pascalpfeil/config.h View File

@ -19,9 +19,6 @@
/* 1000Hz USB polling */
#define USB_POLLING_INTERVAL_MS 1
/* Send up to 4 key press events per scan */
#define QMK_KEYS_PER_SCAN 4
/* Force NKRO on boot up */
#define FORCE_NKRO


+ 0
- 1
keyboards/maple_computing/minidox/keymaps/norman/config.h View File

@ -1,5 +1,4 @@
#pragma once
#define PERMISSIVE_HOLD
#define QMK_KEYS_PER_SCAN 4
#define TAPPING_TERM 160

+ 0
- 1
keyboards/massdrop/alt/keymaps/b_/config.h View File

@ -23,7 +23,6 @@
// #define MOUSEKEY_MAX_SPEED 10
// #define MOUSEKEY_WHEEL_DELAY 0
//#define FORCE_NKRO // NKRO by default requires to be turned on, this forces it on during keyboard startup regardless of EEPROM setting. NKRO can still be turned off but will be turned on again if the keyboard reboots.
// #define QMK_KEYS_PER_SCAN 4 // Allows sending more than one key per scan. By default, only one key event gets sent via process_record() per scan. This has little impact on most typing, but if you're doing a lot of chords, or your scan rate is slow to begin with, you can have some delay in processing key events. Each press and release is a separate event. For a keyboard with 1ms or so scan times, even a very fast typist isn't going to produce the 500 keystrokes a second needed to actually get more than a few ms of delay from this. But if you're doing chording on something with 3-4ms scan times? You probably want this.
// #define STRICT_LAYER_RELEASE // Force a key release to be evaluated using the current layer stack instead of remembering which layer it came from (used for advanced cases)
// #define LOCKING_SUPPORT_ENABLE // Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap
// #define LOCKING_RESYNC_ENABLE // Tries to keep switch state consistent with keyboard LED state


+ 0
- 1
keyboards/massdrop/alt/keymaps/pregame/config.h View File

@ -36,7 +36,6 @@
// #define MOUSEKEY_MAX_SPEED 10
// #define MOUSEKEY_WHEEL_DELAY 0
#define FORCE_NKRO // NKRO by default requires to be turned on, this forces it on during keyboard startup regardless of EEPROM setting. NKRO can still be turned off but will be turned on again if the keyboard reboots.
// #define QMK_KEYS_PER_SCAN 4 // Allows sending more than one key per scan. By default, only one key event gets sent via process_record() per scan. This has little impact on most typing, but if you're doing a lot of chords, or your scan rate is slow to begin with, you can have some delay in processing key events. Each press and release is a separate event. For a keyboard with 1ms or so scan times, even a very fast typist isn't going to produce the 500 keystrokes a second needed to actually get more than a few ms of delay from this. But if you're doing chording on something with 3-4ms scan times? You probably want this.
// #define STRICT_LAYER_RELEASE // Force a key release to be evaluated using the current layer stack instead of remembering which layer it came from (used for advanced cases)
// #define LOCKING_SUPPORT_ENABLE // Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap
// #define LOCKING_RESYNC_ENABLE // Tries to keep switch state consistent with keyboard LED state


+ 0
- 1
keyboards/massdrop/ctrl/keymaps/endgame/config.h View File

@ -20,7 +20,6 @@
#define MOUSEKEY_MAX_SPEED 10
#define MOUSEKEY_WHEEL_DELAY 0
#define FORCE_NKRO // NKRO by default requires to be turned on, this forces it on during keyboard startup regardless of EEPROM setting. NKRO can still be turned off but will be turned on again if the keyboard reboots.
// #define QMK_KEYS_PER_SCAN 4 // Allows sending more than one key per scan. By default, only one key event gets sent via process_record() per scan. This has little impact on most typing, but if you're doing a lot of chords, or your scan rate is slow to begin with, you can have some delay in processing key events. Each press and release is a separate event. For a keyboard with 1ms or so scan times, even a very fast typist isn't going to produce the 500 keystrokes a second needed to actually get more than a few ms of delay from this. But if you're doing chording on something with 3-4ms scan times? You probably want this.
// #define STRICT_LAYER_RELEASE // Force a key release to be evaluated using the current layer stack instead of remembering which layer it came from (used for advanced cases)
// #define LOCKING_SUPPORT_ENABLE // Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap
// #define LOCKING_RESYNC_ENABLE // Tries to keep switch state consistent with keyboard LED state


+ 0
- 1
keyboards/massdrop/ctrl/keymaps/matthewrobo/config.h View File

@ -37,7 +37,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
// #define MOUSEKEY_MAX_SPEED 10
// #define MOUSEKEY_WHEEL_DELAY 0
#define FORCE_NKRO // NKRO by default requires to be turned on, this forces it on during keyboard startup regardless of EEPROM setting. NKRO can still be turned off but will be turned on again if the keyboard reboots.
// #define QMK_KEYS_PER_SCAN 4 // Allows sending more than one key per scan. By default, only one key event gets sent via process_record() per scan. This has little impact on most typing, but if you're doing a lot of chords, or your scan rate is slow to begin with, you can have some delay in processing key events. Each press and release is a separate event. For a keyboard with 1ms or so scan times, even a very fast typist isn't going to produce the 500 keystrokes a second needed to actually get more than a few ms of delay from this. But if you're doing chording on something with 3-4ms scan times? You probably want this.
// #define STRICT_LAYER_RELEASE // Force a key release to be evaluated using the current layer stack instead of remembering which layer it came from (used for advanced cases)
// #define LOCKING_SUPPORT_ENABLE // Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap
// #define LOCKING_RESYNC_ENABLE // Tries to keep switch state consistent with keyboard LED state


+ 0
- 1
keyboards/massdrop/ctrl/keymaps/xanimos/config.h View File

@ -36,7 +36,6 @@
#define MOUSEKEY_MAX_SPEED 10
#define MOUSEKEY_WHEEL_DELAY 0
#define FORCE_NKRO // NKRO by default requires to be turned on, this forces it on during keyboard startup regardless of EEPROM setting. NKRO can still be turned off but will be turned on again if the keyboard reboots.
// #define QMK_KEYS_PER_SCAN 4 // Allows sending more than one key per scan. By default, only one key event gets sent via process_record() per scan. This has little impact on most typing, but if you're doing a lot of chords, or your scan rate is slow to begin with, you can have some delay in processing key events. Each press and release is a separate event. For a keyboard with 1ms or so scan times, even a very fast typist isn't going to produce the 500 keystrokes a second needed to actually get more than a few ms of delay from this. But if you're doing chording on something with 3-4ms scan times? You probably want this.
// #define STRICT_LAYER_RELEASE // Force a key release to be evaluated using the current layer stack instead of remembering which layer it came from (used for advanced cases)
// #define LOCKING_SUPPORT_ENABLE // Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap
// #define LOCKING_RESYNC_ENABLE // Tries to keep switch state consistent with keyboard LED state


+ 0
- 3
keyboards/ml/gas75/config.h View File

@ -38,9 +38,6 @@
/* Forcing to use NKRO instead 6KRO */
#define FORCE_NKRO
/* Larger keys per scan */
#define QMK_KEYS_PER_SCAN 12
/* Encoder pins */
#define ENCODERS_PAD_A { F0 }
#define ENCODERS_PAD_B { F1 }


+ 0
- 1
keyboards/mmkzoo65/config.h View File

@ -38,4 +38,3 @@
/* 将USB 轮询速率更改为 1000hz 并为精英游戏每次扫描使用更大的密钥*/
#define USB_POLLING_INTERVAL_MS 2
#define QMK_KEYS_PER_SCAN 12

+ 0
- 3
keyboards/mss_studio/m63_rgb/config.h View File

@ -36,9 +36,6 @@
/* Forcing to use NKRO instead 6KRO */
#define FORCE_NKRO
/* Change larger keys per scan for elite gaming */
#define QMK_KEYS_PER_SCAN 12
#ifdef RGB_MATRIX_ENABLE
#define DRIVER_LED_TOTAL 75
#define RGB_MATRIX_MAXIMUM_BRIGHTNESS 200


+ 0
- 3
keyboards/mss_studio/m64_rgb/config.h View File

@ -36,9 +36,6 @@
/* Forcing to use NKRO instead 6KRO */
#define FORCE_NKRO
/* Change larger keys per scan for elite gaming */
#define QMK_KEYS_PER_SCAN 12
#ifdef RGB_MATRIX_ENABLE
#define DRIVER_LED_TOTAL 76
#define RGB_MATRIX_MAXIMUM_BRIGHTNESS 200


+ 0
- 4
keyboards/mwstudio/mw65_rgb/keymaps/horrortroll/config.h View File

@ -21,10 +21,6 @@
/* Forcing to use NKRO instead 6KRO */
#define FORCE_NKRO
/* Change USB Polling Rate to 1000hz and a larger keys per scan for elite gaming */
#define USB_POLLING_INTERVAL_MS 1
#define QMK_KEYS_PER_SCAN 12
#ifdef RGB_MATRIX_ENABLE
/* RGB Matrix config */
#undef ENABLE_RGB_MATRIX_BAND_SAT


+ 0
- 4
keyboards/mwstudio/mw65_rgb/keymaps/thearesia/config.h View File

@ -20,7 +20,3 @@
/* Forcing to use NKRO instead 6KRO */
#define FORCE_NKRO
/* Change USB Polling Rate to 1000hz and a larger keys per scan for elite gaming */
#define USB_POLLING_INTERVAL_MS 1
#define QMK_KEYS_PER_SCAN 12

+ 0
- 4
keyboards/pierce/keymaps/durken1/config.h View File

@ -27,9 +27,6 @@
#define PERMISSIVE_HOLD
// Recommended for heavy chording.
#define QMK_KEYS_PER_SCAN 4
// Combo settings
#define COMBO_COUNT 3
#define COMBO_TERM 35
@ -74,4 +71,3 @@
#ifdef AUTO_BUTTONS
#define AUTO_BUTTONS_TIMEOUT 750
#endif

+ 0
- 2
keyboards/rgbkb/zen/rev1/keymaps/cwebster2/config.h View File

@ -29,6 +29,4 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define COMBO_COUNT 2
#endif
#define QMK_KEYS_PER_SCAN 4
#define EE_HANDS

+ 0
- 2
keyboards/sanctified/dystopia/config.h View File

@ -27,5 +27,3 @@
#define MATRIX_COL_PINS { F0, F1, F4, F5, F6, F7, C7, C6, B6, B5, D4, D6, D7, B4 }
#define DIODE_DIRECTION COL2ROW
#define QMK_KEYS_PER_SCAN 12

+ 0
- 3
keyboards/signum/3_0/keymaps/sgurenkov/config.h View File

@ -29,9 +29,6 @@
// Auto Shift and Retro Shift (Auto Shift for Tap Hold).
#define AUTO_SHIFT_TIMEOUT TAPPING_TERM
// Recommended for heavy chording.
#define QMK_KEYS_PER_SCAN 4
// Mouse key speed and acceleration.
#undef MOUSEKEY_DELAY
#define MOUSEKEY_DELAY 0


+ 0
- 3
keyboards/skme/zeno/config.h View File

@ -34,6 +34,3 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define LOCKING_SUPPORT_ENABLE
/* Locking resynchronize hack */
#define LOCKING_RESYNC_ENABLE
/*Enable 1khz polling by default*/
#define USB_POLLING_INTERVAL_MS 1
#define QMK_KEYS_PER_SCAN 4

+ 0
- 1
keyboards/sofle/keymaps/killmaster/config.h View File

@ -61,4 +61,3 @@ for more options.
#define MEDIA_KEY_DELAY 2
#define USB_POLLING_INTERVAL_MS 1
#define QMK_KEYS_PER_SCAN 12

+ 0
- 2
keyboards/splitkb/kyria/keymaps/cwebster2/config.h View File

@ -47,8 +47,6 @@
#define COMBO_COUNT 5
#endif
#define QMK_KEYS_PER_SCAN 4
#define EE_HANDS
//#define DEBUG_MATRIX_SCAN_RATE


+ 0
- 2
keyboards/synthlabs/solo/config.h View File

@ -16,8 +16,6 @@
#define MATRIX_ROWS 3
#define MATRIX_COLS 7
#define QMK_KEYS_PER_SCAN 17
/*
* Force NKRO
*


+ 0
- 18
keyboards/xelus/dharma/keymaps/default/config.h View File

@ -1,18 +0,0 @@
/* Copyright 2021 Harrison Chan (Xelus)
*
* 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 QMK_KEYS_PER_SCAN 4

+ 0
- 18
keyboards/xelus/dharma/keymaps/via/config.h View File

@ -1,18 +0,0 @@
/* Copyright 2021 Harrison Chan (Xelus)
*
* 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 QMK_KEYS_PER_SCAN 4

+ 0
- 18
keyboards/xelus/kangaroo/keymaps/default/config.h View File

@ -1,18 +0,0 @@
/* Copyright 2021 Harrison Chan (Xelus)
*
* 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 QMK_KEYS_PER_SCAN 4

+ 0
- 18
keyboards/xelus/kangaroo/keymaps/via/config.h View File

@ -1,18 +0,0 @@
/* Copyright 2021 Harrison Chan (Xelus)
*
* 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 QMK_KEYS_PER_SCAN 4

+ 0
- 19
keyboards/xelus/la_plus/keymaps/default/config.h View File

@ -1,19 +0,0 @@
/* Copyright 2021 Harrison Chan (Xelus)
*
* 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 QMK_KEYS_PER_SCAN 4

+ 0
- 2
keyboards/xelus/la_plus/keymaps/via/config.h View File

@ -18,5 +18,3 @@
// Enable RGB Matrix
#define VIA_QMK_RGBLIGHT_ENABLE
#define QMK_KEYS_PER_SCAN 4

+ 0
- 18
keyboards/xelus/pachi/mini_32u4/keymaps/default/config.h View File

@ -1,18 +0,0 @@
/* Copyright 2021 Harrison Chan (Xelus)
*
* 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 QMK_KEYS_PER_SCAN 4

+ 0
- 2
keyboards/xelus/pachi/mini_32u4/keymaps/via/config.h View File

@ -18,5 +18,3 @@
// 3 layers or else it will not fit in EEPROM
#define DYNAMIC_KEYMAP_LAYER_COUNT 3
#define QMK_KEYS_PER_SCAN 4

+ 0
- 18
keyboards/xelus/pachi/rev1/keymaps/default/config.h View File

@ -1,18 +0,0 @@
/* Copyright 2021 Harrison Chan (Xelus)
*
* 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 QMK_KEYS_PER_SCAN 4

+ 0
- 2
keyboards/xelus/pachi/rev1/keymaps/via/config.h View File

@ -18,5 +18,3 @@
// 3 layers or else it will not fit in EEPROM
#define DYNAMIC_KEYMAP_LAYER_COUNT 3
#define QMK_KEYS_PER_SCAN 4

+ 0
- 18
keyboards/xelus/pachi/rgb/keymaps/default/config.h View File

@ -1,18 +0,0 @@
/* Copyright 2021 Harrison Chan (Xelus)
*
* 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 QMK_KEYS_PER_SCAN 4

+ 0
- 2
keyboards/xelus/pachi/rgb/keymaps/via/config.h View File

@ -21,5 +21,3 @@
// Enable RGB Matrix
#define VIA_QMK_RGBLIGHT_ENABLE
#define QMK_KEYS_PER_SCAN 4

+ 0
- 18
keyboards/xelus/rs60/keymaps/default/config.h View File

@ -1,18 +0,0 @@
/* Copyright 2021 Harrison Chan (Xelus)
*
* 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 QMK_KEYS_PER_SCAN 4

+ 0
- 18
keyboards/xelus/rs60/keymaps/via/config.h View File

@ -1,18 +0,0 @@
/* Copyright 2021 Harrison Chan (Xelus)
*
* 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 QMK_KEYS_PER_SCAN 4

+ 0
- 18
keyboards/xelus/valor/rev2/keymaps/default/config.h View File

@ -1,18 +0,0 @@
/* Copyright 2021 Harrison Chan (Xelus)
*
* 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 QMK_KEYS_PER_SCAN 4

+ 0
- 2
keyboards/xelus/valor/rev2/keymaps/via/config.h View File

@ -20,5 +20,3 @@
// More layers
#define DYNAMIC_KEYMAP_LAYER_COUNT 8
#define QMK_KEYS_PER_SCAN 4

+ 0
- 18
keyboards/xelus/valor_frl_tkl/keymaps/default/config.h View File

@ -1,18 +0,0 @@
/* Copyright 2020 Harrison Chan (Xelus)
*
* 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 QMK_KEYS_PER_SCAN 4

+ 0
- 18
keyboards/xelus/valor_frl_tkl/keymaps/via/config.h View File

@ -1,18 +0,0 @@
/* Copyright 2020 Harrison Chan (Xelus)
*
* 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 QMK_KEYS_PER_SCAN 4

+ 0
- 18
keyboards/xelus/xs60/keymaps/default/config.h View File

@ -1,18 +0,0 @@
/* Copyright 2021 Harrison Chan (Xelus)
*
* 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 QMK_KEYS_PER_SCAN 4

+ 0
- 2
keyboards/xelus/xs60/keymaps/via/config.h View File

@ -17,5 +17,3 @@
// More layers
#define DYNAMIC_KEYMAP_LAYER_COUNT 8
#define QMK_KEYS_PER_SCAN 4

+ 0
- 1
keyboards/xiudi/xd75/keymaps/tdl-jturner/config.h View File

@ -24,7 +24,6 @@
//#define TAPPING_TERM 200
#define TAPPING_TOGGLE 2
//#define PERMISSIVE_HOLD
//#define QMK_KEYS_PER_SCAN 4
#define FORCE_NKRO
#define MOUSEKEY_INTERVAL 16


+ 0
- 2
layouts/community/65_ansi_blocker/brandonschlack/config.h View File

@ -54,8 +54,6 @@
# undef ENABLE_RGB_MATRIX_SOLID_SPLASH
# undef ENABLE_RGB_MATRIX_SOLID_MULTISPLASH
# define QMK_KEYS_PER_SCAN 4
# define USB_LED_CAPS_LOCK_SCANCODE 30
#endif


+ 0
- 2
layouts/community/65_ansi_blocker_split_bs/brandonschlack-split/config.h View File

@ -54,8 +54,6 @@
# undef ENABLE_RGB_MATRIX_SOLID_SPLASH
# undef ENABLE_RGB_MATRIX_SOLID_MULTISPLASH
# define QMK_KEYS_PER_SCAN 4
# define USB_LED_CAPS_LOCK_SCANCODE 30
#endif


+ 74
- 64
quantum/keyboard.c View File

@ -212,6 +212,12 @@ static inline bool has_ghost_in_row(uint8_t row, matrix_row_t rowdata) {
return false;
}
#else
static inline bool has_ghost_in_row(uint8_t row, matrix_row_t rowdata) {
return false;
}
#endif
/** \brief matrix_setup
@ -426,64 +432,74 @@ void switch_events(uint8_t row, uint8_t col, bool pressed) {
#endif
}
/** \brief Perform scan of keyboard matrix
/**
* @brief Generates a tick event at a maximum rate of 1KHz that drives the
* internal QMK state machine.
*/
static inline void generate_tick_event(void) {
static uint16_t last_tick = 0;
const uint16_t now = timer_read();
if (TIMER_DIFF_16(now, last_tick) != 0) {
action_exec(TICK_EVENT);
last_tick = now;
}
}
/**
* @brief This task scans the keyboards matrix and processes any key presses
* that occur.
*
* Any detected changes in state are sent out as part of the processing
* @return true Matrix did change
* @return false Matrix didn't change
*/
bool matrix_scan_task(void) {
static matrix_row_t matrix_prev[MATRIX_ROWS];
matrix_row_t matrix_row = 0;
matrix_row_t matrix_change = 0;
#ifdef QMK_KEYS_PER_SCAN
uint8_t keys_processed = 0;
#endif
static bool matrix_task(void) {
static matrix_row_t matrix_previous[MATRIX_ROWS];
uint8_t matrix_changed = matrix_scan();
if (matrix_changed) last_matrix_activity_trigger();
matrix_scan();
for (uint8_t r = 0; r < MATRIX_ROWS; r++) {
matrix_row = matrix_get_row(r);
matrix_change = matrix_row ^ matrix_prev[r];
if (matrix_change) {
#ifdef MATRIX_HAS_GHOST
if (has_ghost_in_row(r, matrix_row)) {
continue;
}
#endif
if (debug_matrix) matrix_print();
matrix_row_t col_mask = 1;
for (uint8_t c = 0; c < MATRIX_COLS; c++, col_mask <<= 1) {
if (matrix_change & col_mask) {
if (should_process_keypress()) {
action_exec((keyevent_t){
.key = (keypos_t){.row = r, .col = c}, .pressed = (matrix_row & col_mask), .time = (timer_read() | 1) /* time should not be 0 */
});
}
// record a processed key
matrix_prev[r] ^= col_mask;
switch_events(r, c, (matrix_row & col_mask));
#ifdef QMK_KEYS_PER_SCAN
// only jump out if we have processed "enough" keys.
if (++keys_processed >= QMK_KEYS_PER_SCAN)
#endif
// process a key per task call
goto MATRIX_LOOP_END;
bool matrix_changed = false;
for (uint8_t row = 0; row < MATRIX_ROWS && !matrix_changed; row++) {
matrix_changed |= matrix_previous[row] ^ matrix_get_row(row);
}
matrix_scan_perf_task();
// Short-circuit the complete matrix processing if it is not necessary
if (!matrix_changed) {
generate_tick_event();
return matrix_changed;
}
if (debug_config.matrix) {
matrix_print();
}
const bool process_keypress = should_process_keypress();
for (uint8_t row = 0; row < MATRIX_ROWS; row++) {
const matrix_row_t current_row = matrix_get_row(row);
const matrix_row_t row_changes = current_row ^ matrix_previous[row];
if (!row_changes || has_ghost_in_row(row, current_row)) {
continue;
}
matrix_row_t col_mask = 1;
for (uint8_t col = 0; col < MATRIX_COLS; col++, col_mask <<= 1) {
if (row_changes & col_mask) {
const bool key_pressed = current_row & col_mask;
if (process_keypress) {
action_exec(MAKE_KEYEVENT(row, col, key_pressed));
}
switch_events(row, col, key_pressed);
}
}
}
// call with pseudo tick event when no real key event.
#ifdef QMK_KEYS_PER_SCAN
// we can get here with some keys processed now.
if (!keys_processed)
#endif
action_exec(TICK_EVENT);
MATRIX_LOOP_END:
matrix_previous[row] = current_row;
}
matrix_scan_perf_task();
return matrix_changed;
}
@ -562,20 +578,12 @@ void quantum_task(void) {
#endif
}
/** \brief Keyboard task: Do keyboard routine jobs
*
* Do routine keyboard jobs:
*
* * scan matrix
* * handle mouse movements
* * handle midi commands
* * light LEDs
*
* This is repeatedly called as fast as possible.
*/
/** \brief Main task that is repeatedly called as fast as possible. */
void keyboard_task(void) {
bool matrix_changed = matrix_scan_task();
(void)matrix_changed;
const bool matrix_changed = matrix_task();
if (matrix_changed) {
last_matrix_activity_trigger();
}
quantum_task();
@ -597,8 +605,10 @@ void keyboard_task(void) {
#endif
#ifdef ENCODER_ENABLE
bool encoders_changed = encoder_read();
if (encoders_changed) last_encoder_activity_trigger();
const bool encoders_changed = encoder_read();
if (encoders_changed) {
last_encoder_activity_trigger();
}
#endif
#ifdef OLED_ENABLE


+ 7
- 1
quantum/keyboard.h View File

@ -71,9 +71,15 @@ static inline bool IS_RELEASED(keyevent_t event) {
/* Common keyevent object factory */
#define MAKE_KEYPOS(row_num, col_num) ((keypos_t){.row = (row_num), .col = (col_num)})
/**
* @brief Constructs a key event for a pressed or released key.
*/
#define MAKE_KEYEVENT(row_num, col_num, press) ((keyevent_t){.key = MAKE_KEYPOS((row_num), (col_num)), .pressed = (press), .time = (timer_read() | 1)})
/* Tick event */
/**
* @brief Constructs a internal tick event that is used to drive the internal QMK state machine.
*/
#define TICK_EVENT MAKE_KEYEVENT(KEYLOC_TICK, KEYLOC_TICK, false)
#ifdef ENCODER_MAP_ENABLE


+ 0
- 22
tests/basic/test_keypress.cpp View File

@ -64,11 +64,7 @@ TEST_F(KeyPress, CorrectKeysAreReportedWhenTwoKeysArePressed) {
key_b.press();
key_c.press();
// Note that QMK only processes one key at a time
// See issue #1476 for more information
EXPECT_REPORT(driver, (key_b.report_code));
keyboard_task();
EXPECT_REPORT(driver, (key_b.report_code, key_c.report_code));
keyboard_task();
@ -76,8 +72,6 @@ TEST_F(KeyPress, CorrectKeysAreReportedWhenTwoKeysArePressed) {
key_c.release();
// Note that the first key released is the first one in the matrix order
EXPECT_REPORT(driver, (key_c.report_code));
keyboard_task();
EXPECT_EMPTY_REPORT(driver);
keyboard_task();
}
@ -92,10 +86,7 @@ TEST_F(KeyPress, LeftShiftIsReportedCorrectly) {
key_lsft.press();
key_a.press();
// Unfortunately modifiers are also processed in the wrong order
// See issue #1476 for more information
EXPECT_REPORT(driver, (key_a.report_code));
keyboard_task();
EXPECT_REPORT(driver, (key_a.report_code, key_lsft.report_code));
keyboard_task();
@ -118,11 +109,7 @@ TEST_F(KeyPress, PressLeftShiftAndControl) {
key_lsft.press();
key_lctrl.press();
// Unfortunately modifiers are also processed in the wrong order
// See issue #1476 for more information
EXPECT_REPORT(driver, (key_lsft.report_code));
keyboard_task();
EXPECT_REPORT(driver, (key_lsft.report_code, key_lctrl.report_code));
keyboard_task();
@ -130,8 +117,6 @@ TEST_F(KeyPress, PressLeftShiftAndControl) {
key_lctrl.release();
EXPECT_REPORT(driver, (key_lctrl.report_code));
keyboard_task();
EXPECT_EMPTY_REPORT(driver);
keyboard_task();
}
@ -145,20 +130,13 @@ TEST_F(KeyPress, LeftAndRightShiftCanBePressedAtTheSameTime) {
key_lsft.press();
key_rsft.press();
// Unfortunately modifiers are also processed in the wrong order
// See issue #1476 for more information
EXPECT_REPORT(driver, (key_lsft.report_code));
keyboard_task();
EXPECT_REPORT(driver, (key_lsft.report_code, key_rsft.report_code));
keyboard_task();
key_lsft.release();
key_rsft.release();
EXPECT_REPORT(driver, (key_rsft.report_code));
keyboard_task();
EXPECT_EMPTY_REPORT(driver);
keyboard_task();
}


+ 1
- 2
tests/tap_dance/test_examples.cpp View File

@ -92,10 +92,9 @@ TEST_F(TapDance, DoubleTapWithMod) {
key_shift.release();
key_esc_caps.press();
EXPECT_REPORT(driver, (KC_LSFT, KC_CAPS));
EXPECT_REPORT(driver, (KC_CAPS));
run_one_scan_loop();
key_esc_caps.release();
EXPECT_REPORT(driver, (KC_LSFT));
run_one_scan_loop();
EXPECT_EMPTY_REPORT(driver);
run_one_scan_loop();
}


+ 0
- 4
users/curry/config.h View File

@ -65,10 +65,6 @@
# define ONESHOT_TIMEOUT 3000
#endif // !ONESHOT_TIMEOUT
#if !defined(QMK_KEYS_PER_SCAN)
# define QMK_KEYS_PER_SCAN 4
#endif // !QMK_KEYS_PER_SCAN
#define IGNORE_MOD_TAP_INTERRUPT
#undef PERMISSIVE_HOLD


+ 0
- 4
users/drashna/post_config.h View File

@ -37,10 +37,6 @@
# define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_REST_MODE
#endif
#ifndef QMK_KEYS_PER_SCAN
# define QMK_KEYS_PER_SCAN 8
#endif
#ifdef MOUSEKEY_ENABLE
// mouse movement config
# ifdef MK_3_SPEED


+ 0
- 1
users/ishtob/config.h View File

@ -16,7 +16,6 @@
//#define LEADER_TIMEOUT 300
//#define BACKLIGHT_BREATHING
//#define PERMISSIVE_HOLD
// #define QMK_KEYS_PER_SCAN 4
//audio clicky
//#define AUDIO_CLICKY


+ 0
- 3
users/issmirnov/config.h View File

@ -1,8 +1,5 @@
#pragma once
// Allows sending more than one key per scan. Useful for chords.
#define QMK_KEYS_PER_SCAN 4
// how long before a tap becomes a hold
#undef TAPPING_TERM
#define TAPPING_TERM 100


+ 0
- 4
users/kuchosauronad0/config.h View File

@ -41,10 +41,6 @@
# define ONESHOT_TIMEOUT 3000
#endif// !ONESHOT_TIMEOUT
#ifndef QMK_KEYS_PER_SCAN
# define QMK_KEYS_PER_SCAN 4
#endif // !QMK_KEYS_PER_SCAN
#if defined(LEADER_ENABLE)
# define LEADER_PER_KEY_TIMING
# define LEADER_TIMEOUT 250


+ 0
- 4
users/miles2go/config.h View File

@ -6,10 +6,6 @@
#define RGBLIGHT_EFFECT_BREATHING
#endif // RGBLIGHT_ENABLE
#ifndef QMK_KEYS_PER_SCAN
#define QMK_KEYS_PER_SCAN 4
#endif // !QMK_KEYS_PER_SCAN
#undef FORCE_NKRO
#ifndef TAPPING_TOGGLE


+ 0
- 4
users/yet-another-developer/config.h View File

@ -11,10 +11,6 @@
#define ONESHOT_TIMEOUT 2000
#endif // !ONESHOT_TIMEOUT
#ifndef QMK_KEYS_PER_SCAN
#define QMK_KEYS_PER_SCAN 4
#endif // !QMK_KEYS_PER_SCAN
#if defined(LEADER_ENABLE)
#define LEADER_PER_KEY_TIMING
#define LEADER_TIMEOUT 250


+ 0
- 4
users/zer09/config.h View File

@ -1,10 +1,6 @@
#ifndef USERSPACE_CONFIG_H
#define USERSPACE_CONFIG_H
#ifndef QMK_KEYS_PER_SCAN
#define QMK_KEYS_PER_SCAN 4
#endif // !QMK_KEYS_PER_SCAN
// this makes it possible to do rolling combos (zx) with keys that
// convert to other keys on hold (z becomes ctrl when you hold it,
// and when this option isn't enabled, z rapidly followed by x


Loading…
Cancel
Save