mirror of
https://github.com/Keychron/qmk_firmware.git
synced 2024-11-24 09:27:36 +06:00
70bf714cdb
* fixup: improve AVR detection for 60_iso/unxmaal * fixup: moved TAP_CODE_DELAY to mechmerlin/config.h * fixup: move talljoe.c to INTROSPECTION_KEYMAP_C * fixup: AVR/RGBLIGHT criteria for 60_iso/unxmaal
28 lines
825 B
C
28 lines
825 B
C
#include "mechmerlin.h"
|
|
#include "version.h"
|
|
|
|
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
|
static uint16_t fnx_layer_timer;
|
|
|
|
switch (keycode){
|
|
case KC_FNX:
|
|
if(record->event.pressed){
|
|
fnx_layer_timer = timer_read();
|
|
layer_on(_FL);
|
|
} else {
|
|
layer_off(_FL);
|
|
if (timer_elapsed(fnx_layer_timer) < 150) {
|
|
layer_invert(_AL);
|
|
}
|
|
}
|
|
break;
|
|
case KC_VER:
|
|
if (record->event.pressed) {
|
|
send_string_with_delay_P(PSTR(QMK_KEYBOARD "/" QMK_KEYMAP " @ " QMK_VERSION ", Built on: " QMK_BUILDDATE), TAP_CODE_DELAY);
|
|
} else {
|
|
}
|
|
break;
|
|
}
|
|
return true;
|
|
}
|