aboutsummaryrefslogtreecommitdiff
path: root/keyboards/s60_x/keymaps/jpec/keymap.c
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/s60_x/keymaps/jpec/keymap.c')
-rw-r--r--keyboards/s60_x/keymaps/jpec/keymap.c92
1 files changed, 92 insertions, 0 deletions
diff --git a/keyboards/s60_x/keymaps/jpec/keymap.c b/keyboards/s60_x/keymaps/jpec/keymap.c
new file mode 100644
index 000000000..21e77c10b
--- /dev/null
+++ b/keyboards/s60_x/keymaps/jpec/keymap.c
@@ -0,0 +1,92 @@
1/*
2Copyright 2016 Julien Pecqueur <julien@peclu.net>
3Copyright 2016 Felix Uhl <ifreilicht@gmail.com>
4
5This program is free software: you can redistribute it and/or modify
6it under the terms of the GNU General Public License as published by
7the Free Software Foundation, either version 2 of the License, or
8(at your option) any later version.
9This program is distributed in the hope that it will be useful,
10but WITHOUT ANY WARRANTY; without even the implied warranty of
11MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12GNU General Public License for more details.
13You should have received a copy of the GNU General Public License
14along with this program. If not, see <http://www.gnu.org/licenses/>.
15*/
16
17#include "s60_x.h"
18
19const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
20 /* Layout 0: Default Layer
21 * ,-----------------------------------------------------------.
22 * |` | 1| 2| 3| 4| 5| 6| 7| 8| 9| 0| -| =|Backsp |
23 * |-----------------------------------------------------------|
24 * |Tab | Q| W| E| R| T| Y| U| I| O| P| [| ]| \|
25 * |-----------------------------------------------------------|
26 * |Ctrl | A| S| D| F| G| H| J| K| L| ;| '|Return |
27 * |-----------------------------------------------------------|
28 * |Shift | Z| X| C| V| B| N| M| ,| .| /|Shift |
29 * |-----------------------------------------------------------|
30 * |Fn1 |Gui |Alt | SpaceFn |Alt |Gui |App |Ctrl|
31 * `-----------------------------------------------------------'
32 */
33 LEGACY_KEYMAP(
34 GRV, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, MINS, EQL, BSPC, BSPC, \
35 TAB, Q, W, E, R, T, Y, U, I, O, P, LBRC, RBRC, BSLS, \
36 LCTL, A, S, D, F, G, H, J, K, L, SCLN, QUOT, NUHS, ENT, \
37 LSFT, NUBS, Z, X, C, V, B, N, M, COMM, DOT, SLSH, NO, RSFT, NO, \
38 FN1, LGUI, LALT, FN0, RALT, RGUI, APP, RCTL),
39
40 /* Layout 1: Function Layer
41 * ,-----------------------------------------------------------.
42 * |Esc| F1| F2| F3| F4| F5| F6| F7| F8| F9|F10|F11|F12|Delete |
43 * |-----------------------------------------------------------|
44 * | |Prv|Ply|Nxt|Stp| | |PUp|Up |PDn| |Slk|Pau|Ins |
45 * |-----------------------------------------------------------|
46 * | |Vl-|Mut|Vl+| | |Hom|Lef|Dow|Rig|End| |PEnt |
47 * |-----------------------------------------------------------|
48 * | |Prt|Cut|Cop|Pst|Cal| | | | | |CapsLock |
49 * |-----------------------------------------------------------|
50 * | | | | | | | | |
51 * `-----------------------------------------------------------'
52 */
53 LEGACY_KEYMAP(
54 ESC, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, TRNS, DEL, \
55 TRNS, MPRV, MPLY, MNXT, MSTP, TRNS, TRNS, PGUP, UP, PGDN, TRNS, SLCK, PAUS, INS, \
56 TRNS, VOLD, MUTE, VOLU, TRNS, TRNS, HOME, LEFT, DOWN, RGHT, END, TRNS, TRNS, PENT, \
57 TRNS, TRNS, PSCR, FN2, FN3, FN4, CALC, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, CAPS, TRNS, \
58 TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS),
59};
60
61/*
62* Fn action definition
63*/
64const uint16_t PROGMEM fn_actions[] = {
65 [0] = ACTION_LAYER_TAP_KEY(1, KC_SPACE), /* SpaceFn layout 1 */
66 [1] = ACTION_LAYER_MOMENTARY(1), /* Momentary layout 1 */
67 [2] = ACTION_MODS_KEY(MOD_LSFT, KC_DEL), /* Cut */
68 [3] = ACTION_MODS_KEY(MOD_LCTL, KC_INS), /* Copy */
69 [4] = ACTION_MODS_KEY(MOD_LSFT, KC_INS), /* Paste */
70};
71
72const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt)
73{
74 return MACRO_NONE;
75};
76
77
78void matrix_init_user(void) {
79
80}
81
82void matrix_scan_user(void) {
83
84}
85
86bool process_record_user(uint16_t keycode, keyrecord_t *record) {
87 return true;
88}
89
90void led_set_user(uint8_t usb_led) {
91
92} \ No newline at end of file