forked from mirror/qmk_firmware
Update keymap.c
This commit is contained in:
@@ -1,10 +1,26 @@
|
|||||||
#include QMK_KEYBOARD_H
|
#include QMK_KEYBOARD_H
|
||||||
|
|
||||||
|
enum custom_keycodes {
|
||||||
|
DBLZERO = SAFE_RANGE,
|
||||||
|
};
|
||||||
|
|
||||||
|
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||||
|
switch (keycode) {
|
||||||
|
case DBLZERO:
|
||||||
|
if (record->event.pressed) {
|
||||||
|
SEND_STRING("00");
|
||||||
|
} else {
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
};
|
||||||
|
|
||||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
[0] = LAYOUT_ortho_5x4(
|
[0] = LAYOUT_ortho_5x4(
|
||||||
KC_NLCK, KC_PSLS, KC_PAST, KC_PMNS,
|
KC_NLCK, KC_PSLS, KC_PAST, KC_PMNS,
|
||||||
KC_P7, KC_P8, KC_P9, KC_PPLS,
|
KC_P7, KC_P8, KC_P9, KC_TAB,
|
||||||
KC_P4, KC_P5, KC_P6, KC_COMM,
|
KC_P4, KC_P5, KC_P6, KC_PPLS,
|
||||||
KC_P1, KC_P2, KC_P3, KC_EQL,
|
KC_P1, KC_P2, KC_P3, KC_DEL,
|
||||||
KC_P0, KC_P0, KC_PDOT, KC_PENT)
|
KC_P0, DBLZERO, KC_PDOT, KC_PENT)
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user