diff options
Diffstat (limited to 'keyboards/sixkeyboard/keymaps/semicolonsnet/keymap.c')
| -rw-r--r-- | keyboards/sixkeyboard/keymaps/semicolonsnet/keymap.c | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/keyboards/sixkeyboard/keymaps/semicolonsnet/keymap.c b/keyboards/sixkeyboard/keymaps/semicolonsnet/keymap.c new file mode 100644 index 000000000..86fdc90b6 --- /dev/null +++ b/keyboards/sixkeyboard/keymaps/semicolonsnet/keymap.c | |||
| @@ -0,0 +1,42 @@ | |||
| 1 | /* Copyright 2021 Chase Nordengren | ||
| 2 | * | ||
| 3 | * This program is free software: you can redistribute it and/or modify | ||
| 4 | * it under the terms of the GNU General Public License as published by | ||
| 5 | * the Free Software Foundation, either version 2 of the License, or | ||
| 6 | * (at your option) any later version. | ||
| 7 | * | ||
| 8 | * This program is distributed in the hope that it will be useful, | ||
| 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 11 | * GNU General Public License for more details. | ||
| 12 | * | ||
| 13 | * You should have received a copy of the GNU General Public License | ||
| 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 15 | */ | ||
| 16 | |||
| 17 | #include QMK_KEYBOARD_H | ||
| 18 | |||
| 19 | |||
| 20 | enum custom_keycodes { | ||
| 21 | QMKPASS = SAFE_RANGE, | ||
| 22 | }; | ||
| 23 | |||
| 24 | bool process_record_user(uint16_t keycode, keyrecord_t *record) { | ||
| 25 | switch (keycode) { | ||
| 26 | case QMKPASS: | ||
| 27 | if (record->event.pressed) { | ||
| 28 | // when keycode QMKPASS is pressed | ||
| 29 | SEND_STRING("Sample string"); | ||
| 30 | } else { | ||
| 31 | // when keycode QMKPASS is released | ||
| 32 | } | ||
| 33 | break; | ||
| 34 | } | ||
| 35 | return true; | ||
| 36 | }; | ||
| 37 | |||
| 38 | |||
| 39 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 40 | [0] = LAYOUT(KC_ESC, SGUI(KC_R), SGUI(KC_S), QMKPASS, SGUI(KC_A), SGUI(KC_V)) | ||
| 41 | }; | ||
| 42 | |||
