aboutsummaryrefslogtreecommitdiff
path: root/quantum/keymap_extras/sendstring_serbian_latin.h
diff options
context:
space:
mode:
authorRyan <fauxpark@gmail.com>2020-04-01 14:01:01 +1100
committerGitHub <noreply@github.com>2020-04-01 14:01:01 +1100
commitfec4283022b637b33712e85995f46239ab060d92 (patch)
treea4a8b69d2327623d1d2cf4658e0dc97648069c01 /quantum/keymap_extras/sendstring_serbian_latin.h
parent17af712b7c3190a504110cc38a509c7da8e533a0 (diff)
downloadqmk_firmware-fec4283022b637b33712e85995f46239ab060d92.tar.gz
qmk_firmware-fec4283022b637b33712e85995f46239ab060d92.zip
Add Serbian keymaps and sendstring LUT (#8560)
* Add Serbian keymaps and sendstring LUT * Apply suggestions from code review Co-Authored-By: Konstantin Đorđević <vomindoraan@gmail.com> * Fix formatting Co-authored-by: Konstantin Đorđević <vomindoraan@gmail.com>
Diffstat (limited to 'quantum/keymap_extras/sendstring_serbian_latin.h')
-rw-r--r--quantum/keymap_extras/sendstring_serbian_latin.h100
1 files changed, 100 insertions, 0 deletions
diff --git a/quantum/keymap_extras/sendstring_serbian_latin.h b/quantum/keymap_extras/sendstring_serbian_latin.h
new file mode 100644
index 000000000..40e2a9ea0
--- /dev/null
+++ b/quantum/keymap_extras/sendstring_serbian_latin.h
@@ -0,0 +1,100 @@
1/* Copyright 2020
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 Serbian (Latin) layouts
18
19#pragma once
20
21#include "keymap_serbian_latin.h"
22#include "quantum.h"
23
24// clang-format off
25
26const uint8_t ascii_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, 0, 0, 0, 0, 0, 0, 0),
58 KCLUT_ENTRY(0, 0, 0, 0, 0, 0, 0, 0),
59 KCLUT_ENTRY(0, 0, 0, 1, 1, 1, 1, 0),
60 KCLUT_ENTRY(1, 0, 0, 0, 0, 0, 0, 0),
61 KCLUT_ENTRY(0, 0, 0, 0, 0, 0, 0, 0),
62 KCLUT_ENTRY(0, 0, 0, 0, 0, 0, 0, 0),
63 KCLUT_ENTRY(0, 0, 0, 1, 1, 1, 1, 0)
64};
65
66const uint8_t ascii_to_keycode_lut[128] PROGMEM = {
67 // NUL SOH STX ETX EOT ENQ ACK BEL
68 XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX,
69 // BS TAB LF VT FF CR SO SI
70 KC_BSPC, KC_TAB, KC_ENT, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX,
71 // DLE DC1 DC2 DC3 DC4 NAK SYN ETB
72 XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX,
73 // CAN EM SUB ESC FS GS RS US
74 XXXXXXX, XXXXXXX, XXXXXXX, KC_ESC, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX,
75
76 // ! " # $ % & '
77 KC_SPC, RS_1, RS_2, RS_3, RS_4, RS_5, RS_6, RS_QUOT,
78 // ( ) * + , - . /
79 RS_8, RS_9, RS_PLUS, RS_PLUS, RS_COMM, RS_MINS, RS_DOT, RS_7,
80 // 0 1 2 3 4 5 6 7
81 RS_0, RS_1, RS_2, RS_3, RS_4, RS_5, RS_6, RS_7,
82 // 8 9 : ; < = > ?
83 RS_8, RS_9, RS_DOT, RS_COMM, RS_LABK, RS_0, RS_LABK, RS_QUOT,
84 // @ A B C D E F G
85 RS_V, RS_A, RS_B, RS_C, RS_D, RS_E, RS_F, RS_G,
86 // H I J K L M N O
87 RS_H, RS_I, RS_J, RS_K, RS_L, RS_M, RS_N, RS_O,
88 // P Q R S T U V W
89 RS_P, RS_Q, RS_R, RS_S, RS_T, RS_U, RS_V, RS_W,
90 // X Y Z [ \ ] ^ _
91 RS_X, RS_Y, RS_Z, RS_F, RS_Q, RS_G, RS_3, RS_MINS,
92 // ` a b c d e f g
93 RS_7, RS_A, RS_B, RS_C, RS_D, RS_E, RS_F, RS_G,
94 // h i j k l m n o
95 RS_H, RS_I, RS_J, RS_K, RS_L, RS_M, RS_N, RS_O,
96 // p q r s t u v w
97 RS_P, RS_Q, RS_R, RS_S, RS_T, RS_U, RS_V, RS_W,
98 // x y z { | } ~ DEL
99 RS_X, RS_Y, RS_Z, RS_B, RS_W, RS_N, RS_1, KC_DEL
100};