]> git.donarmstrong.com Git - qmk_firmware.git/blob - quantum/keymap_extras/sendstring_german.h
Sendstring LUT improvements (#5727)
[qmk_firmware.git] / quantum / keymap_extras / sendstring_german.h
1 /* Copyright 2018 Patrick Hener
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 // Sendstring lookup tables for German layouts
18
19 #pragma once
20
21 #include "keymap_german.h"
22
23 const bool ascii_to_shift_lut[128] PROGMEM = {
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     0, 0, 0, 0, 0, 0, 0, 0,
28
29     0, 1, 1, 0, 1, 1, 1, 1,
30     1, 1, 1, 0, 0, 0, 0, 1,
31     0, 0, 0, 0, 0, 0, 0, 0,
32     0, 0, 1, 1, 0, 1, 1, 1,
33     0, 1, 1, 1, 1, 1, 1, 1,
34     1, 1, 1, 1, 1, 1, 1, 1,
35     1, 1, 1, 1, 1, 1, 1, 1,
36     1, 1, 1, 0, 0, 0, 0, 1,
37     1, 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     0, 0, 0, 0, 0, 0, 0, 0
41 };
42
43 const bool ascii_to_altgr_lut[128] PROGMEM = {
44     0, 0, 0, 0, 0, 0, 0, 0,
45     0, 0, 0, 0, 0, 0, 0, 0,
46     0, 0, 0, 0, 0, 0, 0, 0,
47     0, 0, 0, 0, 0, 0, 0, 0,
48
49     0, 0, 0, 0, 0, 0, 0, 0,
50     0, 0, 0, 0, 0, 0, 0, 0,
51     0, 0, 0, 0, 0, 0, 0, 0,
52     0, 0, 0, 0, 0, 0, 0, 0,
53     1, 0, 0, 0, 0, 0, 0, 0,
54     0, 0, 0, 0, 0, 0, 0, 0,
55     0, 0, 0, 0, 0, 0, 0, 0,
56     0, 0, 0, 1, 1, 1, 0, 0,
57     0, 0, 0, 0, 0, 0, 0, 0,
58     0, 0, 0, 0, 0, 0, 0, 0,
59     0, 0, 0, 0, 0, 0, 0, 0,
60     0, 0, 0, 1, 1, 1, 1, 0
61 };
62
63 const uint8_t ascii_to_keycode_lut[128] PROGMEM = {
64     // NUL   SOH      STX      ETX      EOT      ENQ      ACK      BEL
65     XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX,
66     // BS    TAB      LF       VT       FF       CR       SO       SI
67     KC_BSPC, KC_TAB,  KC_ENT,  XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX,
68     // DLE   DC1      DC2      DC3      DC4      NAK      SYN      ETB
69     XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX,
70     // CAN   EM       SUB      ESC      FS       GS       RS       US
71     XXXXXXX, XXXXXXX, XXXXXXX, KC_ESC,  XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX,
72
73     //       !        "        #        $        %        &        '
74     KC_SPC,  DE_1,    DE_2,    DE_HASH, DE_4,    DE_5,    DE_6,    DE_HASH,
75     // (     )        *        +        ,        -        .        /
76     DE_8,    DE_9,    DE_PLUS, DE_PLUS, DE_COMM, DE_MINS, DE_DOT,  DE_7,
77     // 0     1        2        3        4        5        6        7
78     DE_0,    DE_1,    DE_2,    DE_3,    DE_4,    DE_5,    DE_6,    DE_7,
79     // 8     9        :        ;        <        =        >        ?
80     DE_8,    DE_9,    DE_DOT,  DE_COMM, DE_LESS, DE_0,    DE_LESS, DE_SS,
81     // @     A        B        C        D        E        F        G
82     DE_Q,    DE_A,    DE_B,    DE_C,    DE_D,    DE_E,    DE_F,    DE_G,
83     // H     I        J        K        L        M        N        O
84     DE_H,    DE_I,    DE_J,    DE_K,    DE_L,    DE_M,    DE_N,    DE_O,
85     // P     Q        R        S        T        U        V        W
86     DE_P,    DE_Q,    DE_R,    DE_S,    DE_T,    DE_U,    DE_V,    DE_W,
87     // X     Y        Z        [        \        ]        ^        _
88     DE_X,    DE_Y,    DE_Z,    DE_8,    DE_SS,   DE_9,    DE_CIRC, DE_MINS,
89     // `     a        b        c        d        e        f        g
90     DE_ACUT, DE_A,    DE_B,    DE_C,    DE_D,    DE_E,    DE_F,    DE_G,
91     // h     i        j        k        l        m        n        o
92     DE_H,    DE_I,    DE_J,    DE_K,    DE_L,    DE_M,    DE_N,    DE_O,
93     // p     q        r        s        t        u        v        w
94     DE_P,    DE_Q,    DE_R,    DE_S,    DE_T,    DE_U,    DE_V,    DE_W,
95     // x     y        z        {        |        }        ~        DEL
96     DE_X,    DE_Y,    DE_Z,    DE_7,    DE_LESS, DE_0,    DE_PLUS, KC_DEL
97 };