aboutsummaryrefslogtreecommitdiff
path: root/quantum/quantum.c
diff options
context:
space:
mode:
Diffstat (limited to 'quantum/quantum.c')
-rw-r--r--quantum/quantum.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/quantum/quantum.c b/quantum/quantum.c
index cd7fdbb7f..dd5d84f82 100644
--- a/quantum/quantum.c
+++ b/quantum/quantum.c
@@ -70,7 +70,7 @@ static uint8_t music_sequence_position = 0;
70static uint16_t music_sequence_timer = 0; 70static uint16_t music_sequence_timer = 0;
71static uint16_t music_sequence_interval = 100; 71static uint16_t music_sequence_interval = 100;
72 72
73bool process_action_quantum(keyrecord_t *record) { 73bool process_record_quantum(keyrecord_t *record) {
74 74
75 /* This gets the keycode from the key pressed */ 75 /* This gets the keycode from the key pressed */
76 keypos_t key = record->event.key; 76 keypos_t key = record->event.key;
@@ -90,6 +90,14 @@ bool process_action_quantum(keyrecord_t *record) {
90 keycode = keymap_key_to_keycode(layer_switch_get_layer(key), key); 90 keycode = keymap_key_to_keycode(layer_switch_get_layer(key), key);
91 #endif 91 #endif
92 92
93 // This is how you use actions here
94 // if (keycode == KC_LEAD) {
95 // action_t action;
96 // action.code = ACTION_DEFAULT_LAYER_SET(0);
97 // process_action(record, action);
98 // return false;
99 // }
100
93 #ifdef AUDIO_ENABLE 101 #ifdef AUDIO_ENABLE
94 if (keycode == AU_ON && record->event.pressed) { 102 if (keycode == AU_ON && record->event.pressed) {
95 audio_on(); 103 audio_on();
@@ -259,5 +267,6 @@ void matrix_scan_quantum() {
259 } 267 }
260 268
261 #endif 269 #endif
270
262 matrix_scan_kb(); 271 matrix_scan_kb();
263} \ No newline at end of file 272} \ No newline at end of file