2019-02-16 13:57:06 +00:00
|
|
|
/* Copyright 2019 Rys Sommefeldt
|
|
|
|
*
|
|
|
|
* This program is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation, either version 2 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*/
|
|
|
|
|
2019-07-16 16:15:07 +10:00
|
|
|
// Sendstring lookup tables for UK layouts
|
2019-02-16 13:57:06 +00:00
|
|
|
|
2019-07-16 16:15:07 +10:00
|
|
|
#pragma once
|
2019-02-16 13:57:06 +00:00
|
|
|
|
2023-07-09 20:05:01 +10:00
|
|
|
#include "send_string.h"
|
2019-07-16 16:15:07 +10:00
|
|
|
#include "keymap_uk.h"
|
|
|
|
|
2019-10-29 09:54:05 +11:00
|
|
|
// clang-format off
|
2019-02-16 13:57:06 +00:00
|
|
|
|
2020-03-02 18:43:18 -05:00
|
|
|
const uint8_t ascii_to_shift_lut[16] PROGMEM = {
|
|
|
|
KCLUT_ENTRY(0, 0, 0, 0, 0, 0, 0, 0),
|
|
|
|
KCLUT_ENTRY(0, 0, 0, 0, 0, 0, 0, 0),
|
|
|
|
KCLUT_ENTRY(0, 0, 0, 0, 0, 0, 0, 0),
|
|
|
|
KCLUT_ENTRY(0, 0, 0, 0, 0, 0, 0, 0),
|
2019-10-29 09:54:05 +11:00
|
|
|
|
2020-03-02 18:43:18 -05:00
|
|
|
KCLUT_ENTRY(0, 1, 1, 0, 1, 1, 1, 0),
|
|
|
|
KCLUT_ENTRY(1, 1, 1, 1, 0, 0, 0, 0),
|
|
|
|
KCLUT_ENTRY(0, 0, 0, 0, 0, 0, 0, 0),
|
|
|
|
KCLUT_ENTRY(0, 0, 1, 0, 1, 0, 1, 1),
|
|
|
|
KCLUT_ENTRY(1, 1, 1, 1, 1, 1, 1, 1),
|
|
|
|
KCLUT_ENTRY(1, 1, 1, 1, 1, 1, 1, 1),
|
|
|
|
KCLUT_ENTRY(1, 1, 1, 1, 1, 1, 1, 1),
|
|
|
|
KCLUT_ENTRY(1, 1, 1, 0, 0, 0, 1, 1),
|
|
|
|
KCLUT_ENTRY(0, 0, 0, 0, 0, 0, 0, 0),
|
|
|
|
KCLUT_ENTRY(0, 0, 0, 0, 0, 0, 0, 0),
|
|
|
|
KCLUT_ENTRY(0, 0, 0, 0, 0, 0, 0, 0),
|
2020-03-18 11:09:12 +11:00
|
|
|
KCLUT_ENTRY(0, 0, 0, 1, 1, 1, 1, 0)
|
2019-10-29 09:54:05 +11:00
|
|
|
};
|
2019-02-16 13:57:06 +00:00
|
|
|
|
2019-07-16 16:15:07 +10:00
|
|
|
const uint8_t ascii_to_keycode_lut[128] PROGMEM = {
|
|
|
|
// NUL SOH STX ETX EOT ENQ ACK BEL
|
|
|
|
XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX,
|
|
|
|
// BS TAB LF VT FF CR SO SI
|
2019-10-29 09:54:05 +11:00
|
|
|
KC_BSPC, KC_TAB, KC_ENT, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX,
|
2019-07-16 16:15:07 +10:00
|
|
|
// DLE DC1 DC2 DC3 DC4 NAK SYN ETB
|
|
|
|
XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX,
|
|
|
|
// CAN EM SUB ESC FS GS RS US
|
2019-10-29 09:54:05 +11:00
|
|
|
XXXXXXX, XXXXXXX, XXXXXXX, KC_ESC, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX,
|
2019-02-16 13:57:06 +00:00
|
|
|
|
2019-07-16 16:15:07 +10:00
|
|
|
// ! " # $ % & '
|
2020-03-18 11:09:12 +11:00
|
|
|
KC_SPC, UK_1, UK_2, UK_HASH, UK_4, UK_5, UK_7, UK_QUOT,
|
2019-07-16 16:15:07 +10:00
|
|
|
// ( ) * + , - . /
|
2019-10-29 09:54:05 +11:00
|
|
|
UK_9, UK_0, UK_8, UK_EQL, UK_COMM, UK_MINS, UK_DOT, UK_SLSH,
|
2019-07-16 16:15:07 +10:00
|
|
|
// 0 1 2 3 4 5 6 7
|
2019-10-29 09:54:05 +11:00
|
|
|
UK_0, UK_1, UK_2, UK_3, UK_4, UK_5, UK_6, UK_7,
|
2019-07-16 16:15:07 +10:00
|
|
|
// 8 9 : ; < = > ?
|
2019-10-29 09:54:05 +11:00
|
|
|
UK_8, UK_9, UK_SCLN, UK_SCLN, UK_COMM, UK_EQL, UK_DOT, UK_SLSH,
|
2019-07-16 16:15:07 +10:00
|
|
|
// @ A B C D E F G
|
2019-10-29 09:54:05 +11:00
|
|
|
UK_QUOT, UK_A, UK_B, UK_C, UK_D, UK_E, UK_F, UK_G,
|
2019-07-16 16:15:07 +10:00
|
|
|
// H I J K L M N O
|
2019-10-29 09:54:05 +11:00
|
|
|
UK_H, UK_I, UK_J, UK_K, UK_L, UK_M, UK_N, UK_O,
|
2019-07-16 16:15:07 +10:00
|
|
|
// P Q R S T U V W
|
2019-10-29 09:54:05 +11:00
|
|
|
UK_P, UK_Q, UK_R, UK_S, UK_T, UK_U, UK_V, UK_W,
|
2019-07-16 16:15:07 +10:00
|
|
|
// X Y Z [ \ ] ^ _
|
2019-10-29 09:54:05 +11:00
|
|
|
UK_X, UK_Y, UK_Z, UK_LBRC, UK_BSLS, UK_RBRC, UK_6, UK_MINS,
|
2019-07-16 16:15:07 +10:00
|
|
|
// ` a b c d e f g
|
2019-10-29 09:54:05 +11:00
|
|
|
UK_GRV, UK_A, UK_B, UK_C, UK_D, UK_E, UK_F, UK_G,
|
2019-07-16 16:15:07 +10:00
|
|
|
// h i j k l m n o
|
2019-10-29 09:54:05 +11:00
|
|
|
UK_H, UK_I, UK_J, UK_K, UK_L, UK_M, UK_N, UK_O,
|
2019-07-16 16:15:07 +10:00
|
|
|
// p q r s t u v w
|
2019-10-29 09:54:05 +11:00
|
|
|
UK_P, UK_Q, UK_R, UK_S, UK_T, UK_U, UK_V, UK_W,
|
2019-07-16 16:15:07 +10:00
|
|
|
// x y z { | } ~ DEL
|
2019-10-29 09:54:05 +11:00
|
|
|
UK_X, UK_Y, UK_Z, UK_LBRC, UK_BSLS, UK_RBRC, UK_HASH, KC_DEL
|
|
|
|
};
|