1 /* Copyright 2019 kimat
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.
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.
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/>.
16 /* Sendstring definitions for the belgian layout */
17 #ifndef SENDSTRING_BELGIAN
18 #define SENDSTRING_BELGIAN
20 #include "keymap_belgian.h"
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,
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
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,
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
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 ,
71 BE_LPRN, BE_RPRN, BE_DLR,BE_EQL, BE_COMM, BE_MINS, BE_SCLN, BE_COLN,
73 BE_AGRV, BE_AMP, BE_EACU, BE_QUOT, BE_APOS, BE_LPRN, BE_PARA, BE_EGRV,
75 BE_EXLM, BE_CCED, BE_COLN, BE_SCLN, BE_LESS, BE_EQL, BE_LESS, BE_COMM,
77 BE_EACU, BE_A, KC_B, KC_C, KC_D, KC_E, KC_F, KC_G,
79 KC_H, KC_I, KC_J, KC_K, KC_L, BE_M, KC_N, KC_O,
81 KC_P, BE_Q, KC_R, KC_S, KC_T, KC_U, KC_V, BE_W,
83 KC_X, KC_Y, BE_Z, BE_CIRC, BE_LESS, BE_DLR, BE_PARA, BE_MINS,
85 BE_MU, BE_A, KC_B, KC_C, KC_D, KC_E, KC_F, KC_G,
87 KC_H, KC_I, KC_J, KC_K, KC_L, BE_M, KC_N, KC_O,
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