summaryrefslogtreecommitdiff
path: root/users/drashna/keyrecords
diff options
context:
space:
mode:
authorDrashna Jaelre <drashna@live.com>2022-01-30 13:20:33 -0800
committerGitHub <noreply@github.com>2022-01-30 13:20:33 -0800
commit941b1d35b8e40a9c93301a1131ef3f3336fee0b5 (patch)
tree54c8d1ec131d5c8a6e0dd89364a9840b3925fcdd /users/drashna/keyrecords
parent3555ee0555c8a9ff8aea2a101ae02a72b0e76076 (diff)
downloadqmk_firmware-941b1d35b8e40a9c93301a1131ef3f3336fee0b5.tar.gz
qmk_firmware-941b1d35b8e40a9c93301a1131ef3f3336fee0b5.zip
[Keymap] Add oled improvements and cnano keymap for drashna (#16133)
Diffstat (limited to 'users/drashna/keyrecords')
-rw-r--r--users/drashna/keyrecords/process_records.c5
-rw-r--r--users/drashna/keyrecords/unicode.c7
2 files changed, 4 insertions, 8 deletions
diff --git a/users/drashna/keyrecords/process_records.c b/users/drashna/keyrecords/process_records.c
index 012a57f7e4..160a880215 100644
--- a/users/drashna/keyrecords/process_records.c
+++ b/users/drashna/keyrecords/process_records.c
@@ -10,7 +10,7 @@
# include "autocorrection/autocorrection.h"
#endif
#ifdef __AVR__
-#include <avr/wdt.h>
+# include <avr/wdt.h>
#endif
uint16_t copy_paste_timer;
@@ -36,7 +36,7 @@ __attribute__((weak)) bool process_record_secrets(uint16_t keycode, keyrecord_t
* @return true Continue processing keycode and send to host
* @return false Stop process keycode and do not send to host
*/
-bool process_record_user(uint16_t keycode, keyrecord_t *record) {
+bool process_record_user(uint16_t keycode, keyrecord_t *record) {
// If console is enabled, it will print the matrix position and status of each key pressed
#ifdef KEYLOGGER_ENABLE
uprintf("KL: kc: 0x%04X, col: %2u, row: %2u, pressed: %b, time: %5u, int: %b, count: %u\n", keycode, record->event.key.col, record->event.key.row, record->event.pressed, record->event.time, record->tap.interrupted, record->tap.count);
@@ -234,7 +234,6 @@ bool process_record_user(uint16_t keycode, keyrecord_t *re
software_reset();
}
return false;
-
}
return true;
}
diff --git a/users/drashna/keyrecords/unicode.c b/users/drashna/keyrecords/unicode.c
index db2058e5d1..5acd51da9b 100644
--- a/users/drashna/keyrecords/unicode.c
+++ b/users/drashna/keyrecords/unicode.c
@@ -181,7 +181,6 @@ bool process_record_aussie(uint16_t keycode, keyrecord_t *record) {
bool process_record_zalgo(uint16_t keycode, keyrecord_t *record) {
if ((KC_A <= keycode) && (keycode <= KC_0)) {
if (record->event.pressed) {
-
tap_code16_nomods(keycode);
int number = (rand() % (8 + 1 - 2)) + 2;
@@ -285,13 +284,11 @@ bool process_record_unicode(uint16_t keycode, keyrecord_t *record) {
} else if (typing_mode == KC_ZALGO) {
return process_record_zalgo(keycode, record);
}
- return process_unicode_common(keycode, record);
+ return true;
}
/**
* @brief Initialize the default unicode mode on firmware startu
*
*/
-void matrix_init_unicode(void) {
- unicode_input_mode_init();
-}
+void matrix_init_unicode(void) { unicode_input_mode_init(); }