[Keymap] Add oled improvements and cnano keymap for drashna (#16133)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
@@ -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(); }
|
||||
|
Reference in New Issue
Block a user