summaryrefslogtreecommitdiffstats
path: root/quantum
diff options
context:
space:
mode:
Diffstat (limited to 'quantum')
-rw-r--r--quantum/action.c123
-rw-r--r--quantum/action.h14
-rw-r--r--quantum/action_layer.c22
-rw-r--r--quantum/action_layer.h1
-rw-r--r--quantum/action_tapping.c266
-rw-r--r--quantum/action_tapping.h13
-rw-r--r--quantum/haptic.c9
-rw-r--r--quantum/keyboard.h7
-rw-r--r--quantum/keycodes.h2
-rw-r--r--quantum/keymap_extras/keymap_belgian.h96
-rw-r--r--quantum/keymap_extras/keymap_bepo.h127
-rw-r--r--quantum/keymap_extras/keymap_brazilian_abnt2.h97
-rw-r--r--quantum/keymap_extras/keymap_canadian_multilingual.h132
-rw-r--r--quantum/keymap_extras/keymap_colemak.h78
-rw-r--r--quantum/keymap_extras/keymap_croatian.h94
-rw-r--r--quantum/keymap_extras/keymap_czech.h96
-rw-r--r--quantum/keymap_extras/keymap_danish.h95
-rw-r--r--quantum/keymap_extras/keymap_dvorak.h78
-rw-r--r--quantum/keymap_extras/keymap_dvorak_fr.h84
-rw-r--r--quantum/keymap_extras/keymap_dvorak_programmer.h78
-rw-r--r--quantum/keymap_extras/keymap_estonian.h95
-rw-r--r--quantum/keymap_extras/keymap_finnish.h95
-rw-r--r--quantum/keymap_extras/keymap_french.h98
-rw-r--r--quantum/keymap_extras/keymap_french_afnor.h144
-rw-r--r--quantum/keymap_extras/keymap_french_mac_iso.h114
-rw-r--r--quantum/keymap_extras/keymap_german.h95
-rw-r--r--quantum/keymap_extras/keymap_german_mac_iso.h114
-rw-r--r--quantum/keymap_extras/keymap_greek.h96
-rw-r--r--quantum/keymap_extras/keymap_hebrew.h96
-rw-r--r--quantum/keymap_extras/keymap_hungarian.h94
-rw-r--r--quantum/keymap_extras/keymap_icelandic.h96
-rw-r--r--quantum/keymap_extras/keymap_irish.h95
-rw-r--r--quantum/keymap_extras/keymap_italian.h109
-rw-r--r--quantum/keymap_extras/keymap_italian_mac_ansi.h114
-rw-r--r--quantum/keymap_extras/keymap_italian_mac_iso.h114
-rw-r--r--quantum/keymap_extras/keymap_japanese.h85
-rw-r--r--quantum/keymap_extras/keymap_korean.h79
-rw-r--r--quantum/keymap_extras/keymap_latvian.h114
-rw-r--r--quantum/keymap_extras/keymap_lithuanian_azerty.h94
-rw-r--r--quantum/keymap_extras/keymap_lithuanian_qwerty.h109
-rw-r--r--quantum/keymap_extras/keymap_neo2.h61
-rw-r--r--quantum/keymap_extras/keymap_nordic.h84
-rw-r--r--quantum/keymap_extras/keymap_norman.h78
-rw-r--r--quantum/keymap_extras/keymap_norwegian.h95
-rw-r--r--quantum/keymap_extras/keymap_plover.h101
-rw-r--r--quantum/keymap_extras/keymap_plover_dvorak.h91
-rw-r--r--quantum/keymap_extras/keymap_polish.h113
-rw-r--r--quantum/keymap_extras/keymap_portuguese.h94
-rw-r--r--quantum/keymap_extras/keymap_portuguese_mac_iso.h114
-rw-r--r--quantum/keymap_extras/keymap_romanian.h112
-rw-r--r--quantum/keymap_extras/keymap_russian.h92
-rw-r--r--quantum/keymap_extras/keymap_serbian.h91
-rw-r--r--quantum/keymap_extras/keymap_serbian_latin.h94
-rw-r--r--quantum/keymap_extras/keymap_slovak.h96
-rw-r--r--quantum/keymap_extras/keymap_slovenian.h94
-rw-r--r--quantum/keymap_extras/keymap_spanish.h95
-rw-r--r--quantum/keymap_extras/keymap_spanish_dvorak.h95
-rw-r--r--quantum/keymap_extras/keymap_swedish.h96
-rw-r--r--quantum/keymap_extras/keymap_swedish_mac_ansi.h115
-rw-r--r--quantum/keymap_extras/keymap_swedish_mac_iso.h116
-rw-r--r--quantum/keymap_extras/keymap_swedish_pro_mac_ansi.h115
-rw-r--r--quantum/keymap_extras/keymap_swedish_pro_mac_iso.h116
-rw-r--r--quantum/keymap_extras/keymap_swiss_de.h101
-rw-r--r--quantum/keymap_extras/keymap_swiss_fr.h101
-rw-r--r--quantum/keymap_extras/keymap_turkish_f.h112
-rw-r--r--quantum/keymap_extras/keymap_turkish_q.h94
-rw-r--r--quantum/keymap_extras/keymap_uk.h95
-rw-r--r--quantum/keymap_extras/keymap_ukrainian.h92
-rw-r--r--quantum/keymap_extras/keymap_us.h76
-rw-r--r--quantum/keymap_extras/keymap_us_extended.h119
-rw-r--r--quantum/keymap_extras/keymap_us_international.h114
-rw-r--r--quantum/keymap_extras/keymap_us_international_linux.h121
-rw-r--r--quantum/keymap_extras/keymap_workman.h78
-rw-r--r--quantum/keymap_extras/keymap_workman_zxcvm.h78
-rw-r--r--quantum/keymap_introspection.c4
-rw-r--r--quantum/led.c10
-rw-r--r--quantum/led.h5
-rw-r--r--quantum/logging/nodebug.h26
-rw-r--r--quantum/main.c6
-rw-r--r--quantum/matrix.c10
-rw-r--r--quantum/os_detection.c129
-rw-r--r--quantum/os_detection.h38
-rw-r--r--quantum/os_detection/tests/os_detection.cpp164
-rw-r--r--quantum/os_detection/tests/rules.mk5
-rw-r--r--quantum/os_detection/tests/testlist.mk1
-rw-r--r--quantum/painter/lvgl/qp_lvgl.c144
-rw-r--r--quantum/painter/lvgl/qp_lvgl.h25
-rw-r--r--quantum/painter/lvgl/rules.mk24
-rw-r--r--quantum/painter/qp.h7
-rw-r--r--quantum/painter/qp_draw_image.c12
-rw-r--r--quantum/painter/rules.mk6
-rw-r--r--quantum/process_keycode/process_auto_shift.c41
-rw-r--r--quantum/process_keycode/process_auto_shift.h5
-rw-r--r--quantum/process_keycode/process_leader.c42
-rw-r--r--quantum/process_keycode/process_leader.h4
-rw-r--r--quantum/process_keycode/process_tap_dance.c44
-rw-r--r--quantum/process_keycode/process_tap_dance.h42
-rw-r--r--quantum/process_keycode/process_ucis.c52
-rw-r--r--quantum/process_keycode/process_ucis.h16
-rw-r--r--quantum/process_keycode/process_unicodemap.h2
-rw-r--r--quantum/rgb_matrix/animations/jellybean_raindrops_anim.h4
-rw-r--r--quantum/rgb_matrix/animations/pixel_flow_anim.h4
-rw-r--r--quantum/rgb_matrix/animations/pixel_rain_anim.h21
-rw-r--r--quantum/rgb_matrix/animations/raindrops_anim.h2
-rw-r--r--quantum/rgb_matrix/animations/solid_reactive_anim.h2
-rw-r--r--quantum/rgb_matrix/animations/solid_reactive_cross.h2
-rw-r--r--quantum/rgb_matrix/animations/solid_reactive_nexus.h5
-rw-r--r--quantum/rgb_matrix/animations/solid_reactive_simple_anim.h2
-rw-r--r--quantum/rgb_matrix/animations/solid_reactive_wide.h2
-rw-r--r--quantum/rgblight/rgblight.h17
-rw-r--r--quantum/rgblight/rgblight_breathe_table.h2
-rw-r--r--quantum/split_common/transaction_id_define.h4
-rw-r--r--quantum/split_common/transactions.c45
-rw-r--r--quantum/split_common/transport.h12
114 files changed, 2782 insertions, 5107 deletions
diff --git a/quantum/action.c b/quantum/action.c
index abf9834d2f..f6fbb999c8 100644
--- a/quantum/action.c
+++ b/quantum/action.c
@@ -16,12 +16,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include <limits.h>
-#ifdef DEBUG_ACTION
-# include "debug.h"
-#else
-# include "nodebug.h"
-#endif
-
#include "host.h"
#include "keycode.h"
#include "keyboard.h"
@@ -55,8 +49,8 @@ int retro_tapping_counter = 0;
# include "process_auto_shift.h"
#endif
-#ifdef IGNORE_MOD_TAP_INTERRUPT_PER_KEY
-__attribute__((weak)) bool get_ignore_mod_tap_interrupt(uint16_t keycode, keyrecord_t *record) {
+#ifdef HOLD_ON_OTHER_KEY_PRESS_PER_KEY
+__attribute__((weak)) bool get_hold_on_other_key_press(uint16_t keycode, keyrecord_t *record) {
return false;
}
#endif
@@ -76,11 +70,11 @@ __attribute__((weak)) bool pre_process_record_quantum(keyrecord_t *record) {
* FIXME: Needs documentation.
*/
void action_exec(keyevent_t event) {
- if (!IS_NOEVENT(event)) {
- dprint("\n---- action_exec: start -----\n");
- dprint("EVENT: ");
+ if (IS_EVENT(event)) {
+ ac_dprintf("\n---- action_exec: start -----\n");
+ ac_dprintf("EVENT: ");
debug_event(event);
- dprintln();
+ ac_dprintf("\n");
#if defined(RETRO_TAPPING) || defined(RETRO_TAPPING_PER_KEY) || (defined(AUTO_SHIFT_ENABLE) && defined(RETRO_SHIFT))
retro_tapping_counter++;
#endif
@@ -93,7 +87,7 @@ void action_exec(keyevent_t event) {
#ifdef SWAP_HANDS_ENABLE
// Swap hands handles both keys and encoders, if ENCODER_MAP_ENABLE is defined.
- if (!IS_NOEVENT(event)) {
+ if (IS_EVENT(event)) {
process_hand_swap(&event);
}
#endif
@@ -131,8 +125,8 @@ void action_exec(keyevent_t event) {
if (IS_NOEVENT(record.event) || pre_process_record_quantum(&record)) {
process_record(&record);
}
- if (!IS_NOEVENT(record.event)) {
- dprint("processed: ");
+ if (IS_EVENT(record.event)) {
+ ac_dprintf("processed: ");
debug_record(record);
dprintln();
}
@@ -280,15 +274,15 @@ void process_record_handler(keyrecord_t *record) {
#else
action_t action = store_or_get_action(record->event.pressed, record->event.key);
#endif
- dprint("ACTION: ");
+ ac_dprintf("ACTION: ");
debug_action(action);
#ifndef NO_ACTION_LAYER
- dprint(" layer_state: ");
+ ac_dprintf(" layer_state: ");
layer_debug();
- dprint(" default_layer_state: ");
+ ac_dprintf(" default_layer_state: ");
default_layer_debug();
#endif
- dprintln();
+ ac_dprintf("\n");
process_action(record, action);
}
@@ -432,14 +426,14 @@ void process_action(keyrecord_t *record, action_t action) {
} else {
if (event.p