annotate keymap.c @ 7:b9fe776c0227 draft default tip

- add eucalyn layout and eucalyn-mac layout - add layer switch keys to _ADJUST layer - minor fixes
author Yoshiki Yazawa <yaz@honeyplanet.jp>
date Thu, 21 Feb 2019 13:47:25 +0900
parents 7b9e0c974769
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
1 #include QMK_KEYBOARD_H
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
2 #include "bootloader.h"
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
3 #ifdef PROTOCOL_LUFA
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
4 #include "lufa.h"
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
5 #include "split_util.h"
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
6 #endif
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
7 #ifdef SSD1306OLED
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
8 #include "ssd1306.h"
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
9 #endif
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
10
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
11 extern keymap_config_t keymap_config;
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
12
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
13 #ifdef RGBLIGHT_ENABLE
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
14 //Following line allows macro to read current RGB settings
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
15 extern rgblight_config_t rgblight_config;
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
16 #endif
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
17
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
18 extern uint8_t is_master;
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
19
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
20 // Each layer gets a name for readability, which is then used in the keymap matrix below.
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
21 // The underscores don't mean anything - you can have a layer called STUFF or any other name.
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
22 // Layer names don't all need to be of the same length, obviously, and you can also skip them
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
23 // entirely and just use numbers.
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
24 #define _QWERTY 0
2
ef0cbe565d18 - enable bootmagic full
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 1
diff changeset
25 #define _MAC 1
7
b9fe776c0227 - add eucalyn layout and eucalyn-mac layout
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 6
diff changeset
26 #define _ECLN 2
b9fe776c0227 - add eucalyn layout and eucalyn-mac layout
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 6
diff changeset
27 #define _ECLNMAC 3
b9fe776c0227 - add eucalyn layout and eucalyn-mac layout
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 6
diff changeset
28 #define _LOWER 4
b9fe776c0227 - add eucalyn layout and eucalyn-mac layout
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 6
diff changeset
29 #define _RAISE 5
0
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
30 #define _ADJUST 16
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
31
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
32 enum custom_keycodes {
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
33 QWERTY = SAFE_RANGE,
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
34 LOWER,
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
35 RAISE,
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
36 ADJUST,
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
37 BACKLIT,
1
366930ab82c7 - enable features: EXTRAKEY_ENABLE,NKRO_ENABLE
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 0
diff changeset
38 RGBRST,
366930ab82c7 - enable features: EXTRAKEY_ENABLE,NKRO_ENABLE
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 0
diff changeset
39 RTAB,
366930ab82c7 - enable features: EXTRAKEY_ENABLE,NKRO_ENABLE
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 0
diff changeset
40 LTAB,
366930ab82c7 - enable features: EXTRAKEY_ENABLE,NKRO_ENABLE
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 0
diff changeset
41 RSPC,
366930ab82c7 - enable features: EXTRAKEY_ENABLE,NKRO_ENABLE
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 0
diff changeset
42 LSPC,
2
ef0cbe565d18 - enable bootmagic full
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 1
diff changeset
43 USPC,
ef0cbe565d18 - enable bootmagic full
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 1
diff changeset
44 DSPC,
1
366930ab82c7 - enable features: EXTRAKEY_ENABLE,NKRO_ENABLE
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 0
diff changeset
45 SSCR,
366930ab82c7 - enable features: EXTRAKEY_ENABLE,NKRO_ENABLE
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 0
diff changeset
46 SWIN,
366930ab82c7 - enable features: EXTRAKEY_ENABLE,NKRO_ENABLE
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 0
diff changeset
47 NAPP,
366930ab82c7 - enable features: EXTRAKEY_ENABLE,NKRO_ENABLE
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 0
diff changeset
48 NWIN
0
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
49 };
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
50
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
51 enum macro_keycodes {
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
52 KC_SAMPLEMACRO,
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
53 };
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
54
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
55 #define KC______ KC_TRNS
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
56 #define KC_XXXXX KC_NO
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
57 #define KC_LOWER LOWER
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
58 #define KC_RAISE RAISE
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
59 #define KC_RST RESET
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
60 #define KC_LRST RGBRST
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
61 #define KC_LTOG RGB_TOG
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
62 #define KC_LHUI RGB_HUI
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
63 #define KC_LHUD RGB_HUD
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
64 #define KC_LSAI RGB_SAI
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
65 #define KC_LSAD RGB_SAD
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
66 #define KC_LVAI RGB_VAI
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
67 #define KC_LVAD RGB_VAD
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
68 #define KC_LMOD RGB_MOD
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
69 #define KC_CTLTB CTL_T(KC_TAB)
3
4bc0df3a6934 - assign tab to basic layer
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 2
diff changeset
70 #define KC_CLESC CTL_T(KC_ESC)
0
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
71 #define KC_GUIEI GUI_T(KC_LANG2)
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
72 #define KC_ALTKN ALT_T(KC_LANG1)
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
73
1
366930ab82c7 - enable features: EXTRAKEY_ENABLE,NKRO_ENABLE
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 0
diff changeset
74 #define KC_RTAB RTAB
366930ab82c7 - enable features: EXTRAKEY_ENABLE,NKRO_ENABLE
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 0
diff changeset
75 #define KC_LTAB LTAB
366930ab82c7 - enable features: EXTRAKEY_ENABLE,NKRO_ENABLE
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 0
diff changeset
76 #define KC_RSPC RSPC
366930ab82c7 - enable features: EXTRAKEY_ENABLE,NKRO_ENABLE
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 0
diff changeset
77 #define KC_LSPC LSPC
2
ef0cbe565d18 - enable bootmagic full
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 1
diff changeset
78 #define KC_USPC USPC
ef0cbe565d18 - enable bootmagic full
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 1
diff changeset
79 #define KC_DSPC DSPC
1
366930ab82c7 - enable features: EXTRAKEY_ENABLE,NKRO_ENABLE
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 0
diff changeset
80 #define KC_SSCR SSCR
366930ab82c7 - enable features: EXTRAKEY_ENABLE,NKRO_ENABLE
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 0
diff changeset
81 #define KC_SWIN SWIN
366930ab82c7 - enable features: EXTRAKEY_ENABLE,NKRO_ENABLE
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 0
diff changeset
82 #define KC_NAPP NAPP
366930ab82c7 - enable features: EXTRAKEY_ENABLE,NKRO_ENABLE
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 0
diff changeset
83 #define KC_NWIN NWIN
366930ab82c7 - enable features: EXTRAKEY_ENABLE,NKRO_ENABLE
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 0
diff changeset
84
7
b9fe776c0227 - add eucalyn layout and eucalyn-mac layout
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 6
diff changeset
85 #define KC_L1 TO(_QWERTY)
b9fe776c0227 - add eucalyn layout and eucalyn-mac layout
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 6
diff changeset
86 #define KC_L2 TO(_MAC)
b9fe776c0227 - add eucalyn layout and eucalyn-mac layout
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 6
diff changeset
87 #define KC_L3 TO(_ECLN)
b9fe776c0227 - add eucalyn layout and eucalyn-mac layout
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 6
diff changeset
88 #define KC_L4 TO(_ECLNMAC)
2
ef0cbe565d18 - enable bootmagic full
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 1
diff changeset
89
ef0cbe565d18 - enable bootmagic full
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 1
diff changeset
90
1
366930ab82c7 - enable features: EXTRAKEY_ENABLE,NKRO_ENABLE
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 0
diff changeset
91 #define SS_RGUI(string) SS_DOWN(X_RGUI) string SS_UP(X_RGUI)
366930ab82c7 - enable features: EXTRAKEY_ENABLE,NKRO_ENABLE
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 0
diff changeset
92
366930ab82c7 - enable features: EXTRAKEY_ENABLE,NKRO_ENABLE
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 0
diff changeset
93
0
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
94 const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
95 [_QWERTY] = LAYOUT_kc( \
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
96 //,-----------------------------------------. ,-----------------------------------------.
3
4bc0df3a6934 - assign tab to basic layer
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 2
diff changeset
97 TAB, Q, W, E, R, T, Y, U, I, O, P, MINS,\
0
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
98 //|------+------+------+------+------+------| |------+------+------+------+------+------|
3
4bc0df3a6934 - assign tab to basic layer
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 2
diff changeset
99 CLESC, A, S, D, F, G, H, J, K, L, SCLN, QUOT,\
0
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
100 //|------+------+------+------+------+------| |------+------+------+------+------+------|
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
101 LSFT, Z, X, C, V, B, N, M, COMM, DOT, SLSH, RSFT,\
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
102 //|------+------+------+------+------+------+------| |------+------+------+------+------+------+------|
2
ef0cbe565d18 - enable bootmagic full
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 1
diff changeset
103 LOWER, SPC, LALT, ENT, BSPC, RAISE \
ef0cbe565d18 - enable bootmagic full
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 1
diff changeset
104 //`--------------------' `--------------------'
ef0cbe565d18 - enable bootmagic full
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 1
diff changeset
105 ),
ef0cbe565d18 - enable bootmagic full
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 1
diff changeset
106
ef0cbe565d18 - enable bootmagic full
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 1
diff changeset
107 [_MAC] = LAYOUT_kc( \
ef0cbe565d18 - enable bootmagic full
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 1
diff changeset
108 //,-----------------------------------------. ,-----------------------------------------.
3
4bc0df3a6934 - assign tab to basic layer
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 2
diff changeset
109 TAB, Q, W, E, R, T, Y, U, I, O, P, MINS,\
2
ef0cbe565d18 - enable bootmagic full
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 1
diff changeset
110 //|------+------+------+------+------+------| |------+------+------+------+------+------|
3
4bc0df3a6934 - assign tab to basic layer
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 2
diff changeset
111 CLESC, A, S, D, F, G, H, J, K, L, SCLN, QUOT,\
2
ef0cbe565d18 - enable bootmagic full
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 1
diff changeset
112 //|------+------+------+------+------+------| |------+------+------+------+------+------|
ef0cbe565d18 - enable bootmagic full
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 1
diff changeset
113 LSFT, Z, X, C, V, B, N, M, COMM, DOT, SLSH, RSFT,\
ef0cbe565d18 - enable bootmagic full
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 1
diff changeset
114 //|------+------+------+------+------+------+------| |------+------+------+------+------+------+------|
1
366930ab82c7 - enable features: EXTRAKEY_ENABLE,NKRO_ENABLE
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 0
diff changeset
115 LOWER, SPC, LGUI, ENT, BSPC, RAISE \
0
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
116 //`--------------------' `--------------------'
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
117 ),
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
118
7
b9fe776c0227 - add eucalyn layout and eucalyn-mac layout
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 6
diff changeset
119 [_ECLN] = LAYOUT_kc( \
b9fe776c0227 - add eucalyn layout and eucalyn-mac layout
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 6
diff changeset
120 //,-----------------------------------------. ,-----------------------------------------.
b9fe776c0227 - add eucalyn layout and eucalyn-mac layout
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 6
diff changeset
121 TAB, Q, W, COMM, DOT, SCLN, M, R, D, Y, P, MINS,\
b9fe776c0227 - add eucalyn layout and eucalyn-mac layout
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 6
diff changeset
122 //|------+------+------+------+------+------| |------+------+------+------+------+------|
b9fe776c0227 - add eucalyn layout and eucalyn-mac layout
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 6
diff changeset
123 CLESC, A, O, E, I, U, G, T, K, S, N, QUOT,\
b9fe776c0227 - add eucalyn layout and eucalyn-mac layout
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 6
diff changeset
124 //|------+------+------+------+------+------| |------+------+------+------+------+------|
b9fe776c0227 - add eucalyn layout and eucalyn-mac layout
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 6
diff changeset
125 LSFT, Z, X, C, V, F, N, M, J, L, SLSH, RSFT,\
b9fe776c0227 - add eucalyn layout and eucalyn-mac layout
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 6
diff changeset
126 //|------+------+------+------+------+------+------| |------+------+------+------+------+------+------|
b9fe776c0227 - add eucalyn layout and eucalyn-mac layout
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 6
diff changeset
127 LOWER, SPC, LALT, ENT, BSPC, RAISE \
b9fe776c0227 - add eucalyn layout and eucalyn-mac layout
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 6
diff changeset
128 //`--------------------' `--------------------'
b9fe776c0227 - add eucalyn layout and eucalyn-mac layout
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 6
diff changeset
129 ),
b9fe776c0227 - add eucalyn layout and eucalyn-mac layout
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 6
diff changeset
130
b9fe776c0227 - add eucalyn layout and eucalyn-mac layout
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 6
diff changeset
131 [_ECLNMAC] = LAYOUT_kc( \
b9fe776c0227 - add eucalyn layout and eucalyn-mac layout
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 6
diff changeset
132 //,-----------------------------------------. ,-----------------------------------------.
b9fe776c0227 - add eucalyn layout and eucalyn-mac layout
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 6
diff changeset
133 TAB, Q, W, COMM, DOT, SCLN, M, R, D, Y, P, MINS,\
b9fe776c0227 - add eucalyn layout and eucalyn-mac layout
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 6
diff changeset
134 //|------+------+------+------+------+------| |------+------+------+------+------+------|
b9fe776c0227 - add eucalyn layout and eucalyn-mac layout
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 6
diff changeset
135 CLESC, A, O, E, I, U, G, T, K, S, N, QUOT,\
b9fe776c0227 - add eucalyn layout and eucalyn-mac layout
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 6
diff changeset
136 //|------+------+------+------+------+------| |------+------+------+------+------+------|
b9fe776c0227 - add eucalyn layout and eucalyn-mac layout
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 6
diff changeset
137 LSFT, Z, X, C, V, F, N, M, J, L, SLSH, RSFT,\
b9fe776c0227 - add eucalyn layout and eucalyn-mac layout
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 6
diff changeset
138 //|------+------+------+------+------+------+------| |------+------+------+------+------+------+------|
b9fe776c0227 - add eucalyn layout and eucalyn-mac layout
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 6
diff changeset
139 LOWER, SPC, LGUI, ENT, BSPC, RAISE \
b9fe776c0227 - add eucalyn layout and eucalyn-mac layout
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 6
diff changeset
140 //`--------------------' `--------------------'
b9fe776c0227 - add eucalyn layout and eucalyn-mac layout
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 6
diff changeset
141 ),
b9fe776c0227 - add eucalyn layout and eucalyn-mac layout
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 6
diff changeset
142
0
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
143 [_LOWER] = LAYOUT_kc( \
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
144 //,-----------------------------------------. ,-----------------------------------------.
4
7e09639847e1 - add mouse emulation
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 3
diff changeset
145 PLUS, EXLM, AT, HASH, DLR, PERC, CIRC, AMPR, ASTR, LPRN, RPRN, BSLS,\
0
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
146 //|------+------+------+------+------+------| |------+------+------+------+------+------|
6
7b9e0c974769 - re-arrange move to each space keys as reversed-T shape
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 5
diff changeset
147 CTLTB, TILD, LTAB, USPC, RTAB, XXXXX, XXXXX, LCBR, RCBR, LBRC, RBRC, PIPE,\
0
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
148 //|------+------+------+------+------+------| |------+------+------+------+------+------|
6
7b9e0c974769 - re-arrange move to each space keys as reversed-T shape
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 5
diff changeset
149 LSFT, GRV, LSPC, DSPC, RSPC, XXXXX, XXXXX, LT, GT, LCBR, RCBR, RSFT,\
0
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
150 //|------+------+------+------+------+------+------| |------+------+------+------+------+------+------|
2
ef0cbe565d18 - enable bootmagic full
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 1
diff changeset
151 LOWER, SPC, LALT, ENT, BSPC, RAISE \
0
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
152 //`--------------------' `--------------------'
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
153 ),
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
154
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
155 [_RAISE] = LAYOUT_kc( \
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
156 //,-----------------------------------------. ,-----------------------------------------.
5
eea4ee4ebb93 - move back cursor keys to _RAISE layer
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 4
diff changeset
157 EQL, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, BSLS,\
0
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
158 //|------+------+------+------+------+------| |------+------+------+------+------+------|
5
eea4ee4ebb93 - move back cursor keys to _RAISE layer
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 4
diff changeset
159 CTLTB, XXXXX, WH_U, MS_U, WH_D, BTN1, HOME, PGUP, UP, PGDN, XXXXX, PIPE,\
0
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
160 //|------+------+------+------+------+------| |------+------+------+------+------+------|
5
eea4ee4ebb93 - move back cursor keys to _RAISE layer
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 4
diff changeset
161 LSFT, BTN3, MS_L, MS_D, MS_R, BTN2, END, LEFT, DOWN, RIGHT, XXXXX, RSFT,\
0
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
162 //|------+------+------+------+------+------+------| |------+------+------+------+------+------+------|
2
ef0cbe565d18 - enable bootmagic full
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 1
diff changeset
163 LOWER, SPC, LALT, ENT, BSPC, RAISE \
0
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
164 //`--------------------' `--------------------'
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
165 ),
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
166
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
167 [_ADJUST] = LAYOUT_kc( \
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
168 //,-----------------------------------------. ,-----------------------------------------.
4
7e09639847e1 - add mouse emulation
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 3
diff changeset
169 F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12,\
0
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
170 //|------+------+------+------+------+------| |------+------+------+------+------+------|
7
b9fe776c0227 - add eucalyn layout and eucalyn-mac layout
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 6
diff changeset
171 XXXXX, SSCR, SWIN, XXXXX, XXXXX, L1, L3, MUTE, VOLD, VOLU, XXXXX, XXXXX,\
0
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
172 //|------+------+------+------+------+------| |------+------+------+------+------+------|
7
b9fe776c0227 - add eucalyn layout and eucalyn-mac layout
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 6
diff changeset
173 RST, XXXXX, XXXXX, XXXXX, XXXXX, L2, L4, MRWD, MPLY, MFFD, XXXXX, RST,\
0
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
174 //|------+------+------+------+------+------+------| |------+------+------+------+------+------+------|
2
ef0cbe565d18 - enable bootmagic full
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 1
diff changeset
175 LOWER, SPC, LALT, ENT, BSPC, RAISE \
0
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
176 //`--------------------' `--------------------'
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
177 )
4
7e09639847e1 - add mouse emulation
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 3
diff changeset
178
2
ef0cbe565d18 - enable bootmagic full
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 1
diff changeset
179 #if 0
ef0cbe565d18 - enable bootmagic full
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 1
diff changeset
180 [_MAC] = LAYOUT_kc( \
ef0cbe565d18 - enable bootmagic full
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 1
diff changeset
181 //,-----------------------------------------. ,-----------------------------------------.
ef0cbe565d18 - enable bootmagic full
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 1
diff changeset
182 _____, _____, _____, _____, _____, _____, _____, _____, _____, _____, _____, _____,\
ef0cbe565d18 - enable bootmagic full
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 1
diff changeset
183 //|------+------+------+------+------+------| |------+------+------+------+------+------|
ef0cbe565d18 - enable bootmagic full
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 1
diff changeset
184 _____, _____, _____, _____, _____, _____, _____, _____, _____, _____, _____, _____,\
ef0cbe565d18 - enable bootmagic full
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 1
diff changeset
185 //|------+------+------+------+------+------| |------+------+------+------+------+------|
ef0cbe565d18 - enable bootmagic full
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 1
diff changeset
186 _____, _____, _____, _____, _____, _____, _____, _____, _____, _____, _____, _____,\
ef0cbe565d18 - enable bootmagic full
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 1
diff changeset
187 //|------+------+------+------+------+------+------| |------+------+------+------+------+------+------|
ef0cbe565d18 - enable bootmagic full
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 1
diff changeset
188 _____, _____, LGUI, _____, _____, _____,\
ef0cbe565d18 - enable bootmagic full
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 1
diff changeset
189 //`--------------------' `--------------------'
ef0cbe565d18 - enable bootmagic full
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 1
diff changeset
190 )
ef0cbe565d18 - enable bootmagic full
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 1
diff changeset
191 #endif
4
7e09639847e1 - add mouse emulation
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 3
diff changeset
192
0
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
193 };
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
194
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
195 int RGB_current_mode;
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
196
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
197 void persistent_default_layer_set(uint16_t default_layer) {
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
198 eeconfig_update_default_layer(default_layer);
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
199 default_layer_set(default_layer);
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
200 }
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
201
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
202 // Setting ADJUST layer RGB back to default
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
203 void update_tri_layer_RGB(uint8_t layer1, uint8_t layer2, uint8_t layer3) {
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
204 if (IS_LAYER_ON(layer1) && IS_LAYER_ON(layer2)) {
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
205 layer_on(layer3);
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
206 } else {
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
207 layer_off(layer3);
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
208 }
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
209 }
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
210
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
211 void matrix_init_user(void) {
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
212 #ifdef RGBLIGHT_ENABLE
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
213 RGB_current_mode = rgblight_config.mode;
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
214 #endif
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
215 //SSD1306 OLED init, make sure to add #define SSD1306OLED in config.h
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
216 #ifdef SSD1306OLED
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
217 iota_gfx_init(!has_usb()); // turns on the display
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
218 #endif
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
219 }
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
220
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
221 //SSD1306 OLED update loop, make sure to add #define SSD1306OLED in config.h
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
222 #ifdef SSD1306OLED
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
223
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
224 // When add source files to SRC in rules.mk, you can use functions.
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
225 const char *read_layer_state(void);
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
226 const char *read_logo(void);
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
227 void set_keylog(uint16_t keycode, keyrecord_t *record);
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
228 const char *read_keylog(void);
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
229 const char *read_keylogs(void);
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
230
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
231 // const char *read_mode_icon(bool swap);
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
232 // const char *read_host_led_state(void);
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
233 // void set_timelog(void);
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
234 // const char *read_timelog(void);
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
235
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
236 void matrix_scan_user(void) {
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
237 iota_gfx_task();
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
238 }
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
239
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
240 void matrix_render_user(struct CharacterMatrix *matrix) {
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
241 if (is_master) {
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
242 // If you want to change the display of OLED, you need to change here
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
243 matrix_write_ln(matrix, read_layer_state());
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
244 matrix_write_ln(matrix, read_keylog());
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
245 matrix_write_ln(matrix, read_keylogs());
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
246 //matrix_write_ln(matrix, read_mode_icon(keymap_config.swap_lalt_lgui));
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
247 //matrix_write_ln(matrix, read_host_led_state());
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
248 //matrix_write_ln(matrix, read_timelog());
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
249 } else {
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
250 matrix_write(matrix, read_logo());
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
251 }
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
252 }
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
253
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
254 void matrix_update(struct CharacterMatrix *dest, const struct CharacterMatrix *source) {
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
255 if (memcmp(dest->display, source->display, sizeof(dest->display))) {
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
256 memcpy(dest->display, source->display, sizeof(dest->display));
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
257 dest->dirty = true;
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
258 }
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
259 }
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
260
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
261 void iota_gfx_task_user(void) {
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
262 struct CharacterMatrix matrix;
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
263 matrix_clear(&matrix);
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
264 matrix_render_user(&matrix);
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
265 matrix_update(&display, &matrix);
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
266 }
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
267 #endif//SSD1306OLED
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
268
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
269 bool process_record_user(uint16_t keycode, keyrecord_t *record) {
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
270 if (record->event.pressed) {
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
271 #ifdef SSD1306OLED
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
272 set_keylog(keycode, record);
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
273 #endif
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
274 // set_timelog();
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
275 }
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
276
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
277 switch (keycode) {
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
278 case QWERTY:
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
279 if (record->event.pressed) {
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
280 persistent_default_layer_set(1UL<<_QWERTY);
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
281 }
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
282 return false;
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
283 break;
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
284 case LOWER:
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
285 if (record->event.pressed) {
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
286 layer_on(_LOWER);
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
287 update_tri_layer_RGB(_LOWER, _RAISE, _ADJUST);
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
288 } else {
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
289 layer_off(_LOWER);
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
290 update_tri_layer_RGB(_LOWER, _RAISE, _ADJUST);
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
291 }
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
292 return false;
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
293 break;
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
294 case RAISE:
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
295 if (record->event.pressed) {
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
296 layer_on(_RAISE);
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
297 update_tri_layer_RGB(_LOWER, _RAISE, _ADJUST);
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
298 } else {
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
299 layer_off(_RAISE);
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
300 update_tri_layer_RGB(_LOWER, _RAISE, _ADJUST);
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
301 }
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
302 return false;
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
303 break;
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
304 case ADJUST:
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
305 if (record->event.pressed) {
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
306 layer_on(_ADJUST);
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
307 } else {
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
308 layer_off(_ADJUST);
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
309 }
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
310 return false;
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
311 break;
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
312 case RGB_MOD:
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
313 #ifdef RGBLIGHT_ENABLE
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
314 if (record->event.pressed) {
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
315 rgblight_mode(RGB_current_mode);
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
316 rgblight_step();
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
317 RGB_current_mode = rgblight_config.mode;
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
318 }
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
319 #endif
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
320 return false;
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
321 break;
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
322 case RGBRST:
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
323 #ifdef RGBLIGHT_ENABLE
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
324 if (record->event.pressed) {
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
325 eeconfig_update_rgblight_default();
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
326 rgblight_enable();
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
327 RGB_current_mode = rgblight_config.mode;
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
328 }
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
329 #endif
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
330 break;
1
366930ab82c7 - enable features: EXTRAKEY_ENABLE,NKRO_ENABLE
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 0
diff changeset
331 case RTAB:
366930ab82c7 - enable features: EXTRAKEY_ENABLE,NKRO_ENABLE
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 0
diff changeset
332 //ctrl-tab
366930ab82c7 - enable features: EXTRAKEY_ENABLE,NKRO_ENABLE
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 0
diff changeset
333 if(record->event.pressed) {
366930ab82c7 - enable features: EXTRAKEY_ENABLE,NKRO_ENABLE
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 0
diff changeset
334 SEND_STRING(SS_LCTRL(SS_TAP(X_TAB)));
366930ab82c7 - enable features: EXTRAKEY_ENABLE,NKRO_ENABLE
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 0
diff changeset
335 }
7
b9fe776c0227 - add eucalyn layout and eucalyn-mac layout
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 6
diff changeset
336 return false;
1
366930ab82c7 - enable features: EXTRAKEY_ENABLE,NKRO_ENABLE
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 0
diff changeset
337 break;
366930ab82c7 - enable features: EXTRAKEY_ENABLE,NKRO_ENABLE
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 0
diff changeset
338 case LTAB:
366930ab82c7 - enable features: EXTRAKEY_ENABLE,NKRO_ENABLE
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 0
diff changeset
339 //ctrl-shift-tab
366930ab82c7 - enable features: EXTRAKEY_ENABLE,NKRO_ENABLE
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 0
diff changeset
340 if(record->event.pressed) {
366930ab82c7 - enable features: EXTRAKEY_ENABLE,NKRO_ENABLE
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 0
diff changeset
341 SEND_STRING(SS_LSFT(SS_LCTRL(SS_TAP(X_TAB))));
366930ab82c7 - enable features: EXTRAKEY_ENABLE,NKRO_ENABLE
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 0
diff changeset
342 }
7
b9fe776c0227 - add eucalyn layout and eucalyn-mac layout
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 6
diff changeset
343 return false;
1
366930ab82c7 - enable features: EXTRAKEY_ENABLE,NKRO_ENABLE
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 0
diff changeset
344 break;
366930ab82c7 - enable features: EXTRAKEY_ENABLE,NKRO_ENABLE
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 0
diff changeset
345 case RSPC:
366930ab82c7 - enable features: EXTRAKEY_ENABLE,NKRO_ENABLE
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 0
diff changeset
346 //ctrl-right
366930ab82c7 - enable features: EXTRAKEY_ENABLE,NKRO_ENABLE
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 0
diff changeset
347 if(record->event.pressed) {
366930ab82c7 - enable features: EXTRAKEY_ENABLE,NKRO_ENABLE
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 0
diff changeset
348 SEND_STRING(SS_LCTRL(SS_TAP(X_RIGHT)));
366930ab82c7 - enable features: EXTRAKEY_ENABLE,NKRO_ENABLE
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 0
diff changeset
349 }
366930ab82c7 - enable features: EXTRAKEY_ENABLE,NKRO_ENABLE
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 0
diff changeset
350 break;
366930ab82c7 - enable features: EXTRAKEY_ENABLE,NKRO_ENABLE
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 0
diff changeset
351 case LSPC:
366930ab82c7 - enable features: EXTRAKEY_ENABLE,NKRO_ENABLE
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 0
diff changeset
352 //ctrl-left
366930ab82c7 - enable features: EXTRAKEY_ENABLE,NKRO_ENABLE
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 0
diff changeset
353 if(record->event.pressed) {
366930ab82c7 - enable features: EXTRAKEY_ENABLE,NKRO_ENABLE
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 0
diff changeset
354 SEND_STRING(SS_LCTRL(SS_TAP(X_LEFT)));
366930ab82c7 - enable features: EXTRAKEY_ENABLE,NKRO_ENABLE
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 0
diff changeset
355 }
7
b9fe776c0227 - add eucalyn layout and eucalyn-mac layout
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 6
diff changeset
356 return false;
1
366930ab82c7 - enable features: EXTRAKEY_ENABLE,NKRO_ENABLE
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 0
diff changeset
357 break;
2
ef0cbe565d18 - enable bootmagic full
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 1
diff changeset
358 case USPC:
ef0cbe565d18 - enable bootmagic full
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 1
diff changeset
359 //ctrl-up
ef0cbe565d18 - enable bootmagic full
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 1
diff changeset
360 if(record->event.pressed) {
ef0cbe565d18 - enable bootmagic full
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 1
diff changeset
361 SEND_STRING(SS_LCTRL(SS_TAP(X_UP)));
ef0cbe565d18 - enable bootmagic full
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 1
diff changeset
362 }
7
b9fe776c0227 - add eucalyn layout and eucalyn-mac layout
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 6
diff changeset
363 return false;
2
ef0cbe565d18 - enable bootmagic full
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 1
diff changeset
364 break;
ef0cbe565d18 - enable bootmagic full
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 1
diff changeset
365 case DSPC:
ef0cbe565d18 - enable bootmagic full
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 1
diff changeset
366 //ctrl-down
ef0cbe565d18 - enable bootmagic full
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 1
diff changeset
367 if(record->event.pressed) {
ef0cbe565d18 - enable bootmagic full
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 1
diff changeset
368 SEND_STRING(SS_LCTRL(SS_TAP(X_DOWN)));
ef0cbe565d18 - enable bootmagic full
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 1
diff changeset
369 }
7
b9fe776c0227 - add eucalyn layout and eucalyn-mac layout
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 6
diff changeset
370 return false;
2
ef0cbe565d18 - enable bootmagic full
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 1
diff changeset
371 break;
1
366930ab82c7 - enable features: EXTRAKEY_ENABLE,NKRO_ENABLE
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 0
diff changeset
372 case SSCR:
366930ab82c7 - enable features: EXTRAKEY_ENABLE,NKRO_ENABLE
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 0
diff changeset
373 //shift-cmd-3
366930ab82c7 - enable features: EXTRAKEY_ENABLE,NKRO_ENABLE
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 0
diff changeset
374 if(record->event.pressed) {
366930ab82c7 - enable features: EXTRAKEY_ENABLE,NKRO_ENABLE
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 0
diff changeset
375 SEND_STRING(SS_LSFT(SS_LGUI(SS_TAP(X_3))));
366930ab82c7 - enable features: EXTRAKEY_ENABLE,NKRO_ENABLE
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 0
diff changeset
376 }
7
b9fe776c0227 - add eucalyn layout and eucalyn-mac layout
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 6
diff changeset
377 return false;
1
366930ab82c7 - enable features: EXTRAKEY_ENABLE,NKRO_ENABLE
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 0
diff changeset
378 break;
366930ab82c7 - enable features: EXTRAKEY_ENABLE,NKRO_ENABLE
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 0
diff changeset
379 case SWIN:
366930ab82c7 - enable features: EXTRAKEY_ENABLE,NKRO_ENABLE
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 0
diff changeset
380 //shift-cmd-4
366930ab82c7 - enable features: EXTRAKEY_ENABLE,NKRO_ENABLE
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 0
diff changeset
381 if(record->event.pressed) {
366930ab82c7 - enable features: EXTRAKEY_ENABLE,NKRO_ENABLE
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 0
diff changeset
382 SEND_STRING(SS_LSFT(SS_LGUI(SS_TAP(X_4))));
366930ab82c7 - enable features: EXTRAKEY_ENABLE,NKRO_ENABLE
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 0
diff changeset
383 }
7
b9fe776c0227 - add eucalyn layout and eucalyn-mac layout
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 6
diff changeset
384 return false;
1
366930ab82c7 - enable features: EXTRAKEY_ENABLE,NKRO_ENABLE
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 0
diff changeset
385 break;
366930ab82c7 - enable features: EXTRAKEY_ENABLE,NKRO_ENABLE
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 0
diff changeset
386 case NAPP:
366930ab82c7 - enable features: EXTRAKEY_ENABLE,NKRO_ENABLE
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 0
diff changeset
387 //cmd-tab
366930ab82c7 - enable features: EXTRAKEY_ENABLE,NKRO_ENABLE
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 0
diff changeset
388 if(record->event.pressed) {
366930ab82c7 - enable features: EXTRAKEY_ENABLE,NKRO_ENABLE
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 0
diff changeset
389 SEND_STRING(SS_RGUI(SS_TAP(X_TAB)));
366930ab82c7 - enable features: EXTRAKEY_ENABLE,NKRO_ENABLE
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 0
diff changeset
390 }
7
b9fe776c0227 - add eucalyn layout and eucalyn-mac layout
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 6
diff changeset
391 return false;
1
366930ab82c7 - enable features: EXTRAKEY_ENABLE,NKRO_ENABLE
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 0
diff changeset
392 break;
366930ab82c7 - enable features: EXTRAKEY_ENABLE,NKRO_ENABLE
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 0
diff changeset
393 case NWIN:
366930ab82c7 - enable features: EXTRAKEY_ENABLE,NKRO_ENABLE
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 0
diff changeset
394 //cmd-grave
366930ab82c7 - enable features: EXTRAKEY_ENABLE,NKRO_ENABLE
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 0
diff changeset
395 if(record->event.pressed) {
366930ab82c7 - enable features: EXTRAKEY_ENABLE,NKRO_ENABLE
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 0
diff changeset
396 SEND_STRING(SS_RGUI(SS_TAP(X_GRAVE)));
366930ab82c7 - enable features: EXTRAKEY_ENABLE,NKRO_ENABLE
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 0
diff changeset
397 }
7
b9fe776c0227 - add eucalyn layout and eucalyn-mac layout
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 6
diff changeset
398 return false;
1
366930ab82c7 - enable features: EXTRAKEY_ENABLE,NKRO_ENABLE
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 0
diff changeset
399 break;
366930ab82c7 - enable features: EXTRAKEY_ENABLE,NKRO_ENABLE
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 0
diff changeset
400
366930ab82c7 - enable features: EXTRAKEY_ENABLE,NKRO_ENABLE
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 0
diff changeset
401 #if 0
366930ab82c7 - enable features: EXTRAKEY_ENABLE,NKRO_ENABLE
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 0
diff changeset
402 case _ENTER:
366930ab82c7 - enable features: EXTRAKEY_ENABLE,NKRO_ENABLE
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 0
diff changeset
403 if (record->event.pressed && get_mods() & MOD_BIT(KC_HYPR)) {
366930ab82c7 - enable features: EXTRAKEY_ENABLE,NKRO_ENABLE
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 0
diff changeset
404 SEND_STRING ("string");
366930ab82c7 - enable features: EXTRAKEY_ENABLE,NKRO_ENABLE
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 0
diff changeset
405 } else {
366930ab82c7 - enable features: EXTRAKEY_ENABLE,NKRO_ENABLE
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 0
diff changeset
406 SEND_STRING (SS_TAP(X_ENTER));
366930ab82c7 - enable features: EXTRAKEY_ENABLE,NKRO_ENABLE
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 0
diff changeset
407 }
366930ab82c7 - enable features: EXTRAKEY_ENABLE,NKRO_ENABLE
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 0
diff changeset
408 return false;
366930ab82c7 - enable features: EXTRAKEY_ENABLE,NKRO_ENABLE
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 0
diff changeset
409 break;
366930ab82c7 - enable features: EXTRAKEY_ENABLE,NKRO_ENABLE
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 0
diff changeset
410 #endif
366930ab82c7 - enable features: EXTRAKEY_ENABLE,NKRO_ENABLE
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 0
diff changeset
411
0
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
412 }
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
413 return true;
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
414 }
24e3fb306436 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
415