diff options
author | Kimat Boven <kimat@users.noreply.github.com> | 2019-05-29 20:10:30 +0200 |
---|---|---|
committer | Drashna Jaelre <drashna@live.com> | 2019-05-29 11:10:30 -0700 |
commit | 4d97f352309f0b91900a1ecb8af2f1b9d246bddb (patch) | |
tree | 09eb3798f15cb7c04e279ea4f855b1e5fc06da4b /quantum/keymap_extras/sendstring_belgian.h | |
parent | 2ca840d0b8e1c44365644c9c0e3059bfa4d2cd3e (diff) | |
download | qmk_firmware-4d97f352309f0b91900a1ecb8af2f1b9d246bddb.tar.gz qmk_firmware-4d97f352309f0b91900a1ecb8af2f1b9d246bddb.zip |
Add belgian layout for sendstring (#6008)
* belgian layout had no sendstring definition
* backtick was not defined for belgian sendstring
* slash definition was wrong for belgian sendstring
Co-Authored-By: fauxpark <fauxpark@gmail.com>
* use BE_ keys whenever we can
Co-Authored-By: fauxpark <fauxpark@gmail.com>
* ^ can be sent as a normal key (not a dead key) with altgr+para
Diffstat (limited to 'quantum/keymap_extras/sendstring_belgian.h')
-rw-r--r-- | quantum/keymap_extras/sendstring_belgian.h | 94 |
1 files changed, 94 insertions, 0 deletions
diff --git a/quantum/keymap_extras/sendstring_belgian.h b/quantum/keymap_extras/sendstring_belgian.h new file mode 100644 index 000000000..77531a14a --- /dev/null +++ b/quantum/keymap_extras/sendstring_belgian.h | |||
@@ -0,0 +1,94 @@ | |||
1 | /* Copyright 2019 kimat | ||
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 | /* Sendstring definitions for the belgian layout */ | ||
17 | #ifndef SENDSTRING_BELGIAN | ||
18 | #define SENDSTRING_BELGIAN | ||
19 | |||
20 | #include "keymap_belgian.h" | ||
21 | |||
22 | const bool ascii_to_shift_lut[0x80] PROGMEM = { | ||
23 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
24 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
25 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
26 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
27 | |||
28 | 0, 0, 0, 0, 0, 1, 0, 0, | ||
29 | 0, 0, 1, 1, 0, 0, 1, 1, | ||
30 | 1, 1, 1, 1, 1, 1, 1, 1, | ||
31 | 1, 1, 0, 0, 0, 0, 1, 1, | ||
32 | 0, 1, 1, 1, 1, 1, 1, 1, | ||
33 | 1, 1, 1, 1, 1, 1, 1, 1, | ||
34 | 1, 1, 1, 1, 1, 1, 1, 1, | ||
35 | 1, 1, 1, 0, 0, 0, 0, 1, | ||
36 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
37 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
38 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
39 | 0, 0, 0, 0, 0, 0, 0, 0 | ||
40 | }; | ||
41 | const bool ascii_to_altgr_lut[0x80] PROGMEM = { | ||
42 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
43 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
44 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
45 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
46 | |||
47 | 0, 0, 0, 1, 0, 0, 0, 0, | ||
48 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
49 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
50 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
51 | 1, 0, 0, 0, 0, 0, 0, 0, | ||
52 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
53 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
54 | 0, 0, 0, 1, 1, 1, 1, 0, | ||
55 | 1, 0, 0, 0, 0, 0, 0, 0, | ||
56 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
57 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
58 | 0, 0, 0, 1, 1, 1, 1, 0 | ||
59 | }; | ||
60 | |||
61 | // NOTE that you have to send the dead keys twice: tilda, circ | ||
62 | // SEND_STRING(" !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^^``_abcdefghijklmnopqrstuvwxyz{|}~~"); | ||
63 | const uint8_t ascii_to_keycode_lut[0x80] PROGMEM = { | ||
64 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
65 | KC_BSPC, KC_TAB, KC_ENT, 0, 0, 0, 0, 0, | ||
66 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
67 | 0, 0, 0, KC_ESC, 0, 0, 0, 0, | ||
68 | /* SPACE ! " # $ % & ' */ | ||
69 | KC_SPC, BE_EXLM, BE_QUOT, BE_QUOT, BE_DLR,BE_UGRV,BE_AMP, BE_APOS , | ||
70 | /* ( ) * + , - . / */ | ||
71 | BE_LPRN, BE_RPRN, BE_DLR,BE_EQL, BE_COMM, BE_MINS, BE_SCLN, BE_COLN, | ||
72 | /* 0 1 2 3 4 5 6 7 */ | ||
73 | BE_AGRV, BE_AMP, BE_EACU, BE_QUOT, BE_APOS, BE_LPRN, BE_PARA, BE_EGRV, | ||
74 | /* 8 9 : ; < = > ? */ | ||
75 | BE_EXLM, BE_CCED, BE_COLN, BE_SCLN, BE_LESS, BE_EQL, BE_LESS, BE_COMM, | ||
76 | /* @ A B C D E F G */ | ||
77 | BE_EACU, BE_A, KC_B, KC_C, KC_D, KC_E, KC_F, KC_G, | ||
78 | /* H I J K L M N O */ | ||
79 | KC_H, KC_I, KC_J, KC_K, KC_L, BE_M, KC_N, KC_O, | ||
80 | /* P Q R S T U V W */ | ||
81 | KC_P, BE_Q, KC_R, KC_S, KC_T, KC_U, KC_V, BE_W, | ||
82 | /* X Y Z [ \ ] ^ _ */ | ||
83 | KC_X, KC_Y, BE_Z, BE_CIRC, BE_LESS, BE_DLR, BE_PARA, BE_MINS, | ||
84 | /* ` a b c d e f g */ | ||
85 | BE_MU, BE_A, KC_B, KC_C, KC_D, KC_E, KC_F, KC_G, | ||
86 | /* h i j k l m n o */ | ||
87 | KC_H, KC_I, KC_J, KC_K, KC_L, BE_M, KC_N, KC_O, | ||
88 | /* p q r s t u v w */ | ||
89 | KC_P, BE_Q, KC_R, KC_S, KC_T, KC_U, KC_V, BE_W, | ||
90 | /* x y z { | } ~ DELETE */ | ||
91 | KC_X, KC_Y, BE_Z, BE_CCED, BE_AMP, BE_AGRV, BE_EQL, KC_DEL | ||
92 | }; | ||
93 | |||
94 | #endif | ||