mirror of
https://github.com/qmk/qmk_userspace.git
synced 2025-06-16 18:47:55 -04:00
Refactor printedpad (#24236)
This commit is contained in:
parent
780bbfe910
commit
7e2064461f
1 changed files with 26 additions and 1 deletions
|
@ -42,4 +42,29 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
|||
KC_V, KC_W, KC_X,
|
||||
KC_Y, KC_Z, KC_ENT
|
||||
)
|
||||
};
|
||||
};
|
||||
|
||||
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||
switch(keycode) {
|
||||
case LT(0, KC_NO):
|
||||
if (record->event.pressed) {
|
||||
// on tap
|
||||
if (record->tap.count) {
|
||||
if (get_highest_layer(layer_state) >= 3) {
|
||||
layer_clear();
|
||||
} else {
|
||||
layer_move(get_highest_layer(layer_state) + 1);
|
||||
}
|
||||
}
|
||||
#ifdef OLED_ENABLE
|
||||
// on hold
|
||||
else {
|
||||
void oled_display_mode_step(void);
|
||||
oled_display_mode_step();
|
||||
}
|
||||
#endif
|
||||
}
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue