sendstring_german.h 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  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. // Sendstring lookup tables for German layouts
  17. #pragma once
  18. #include "keymap_german.h"
  19. // clang-format off
  20. const bool ascii_to_shift_lut[128] PROGMEM = {
  21. 0, 0, 0, 0, 0, 0, 0, 0,
  22. 0, 0, 0, 0, 0, 0, 0, 0,
  23. 0, 0, 0, 0, 0, 0, 0, 0,
  24. 0, 0, 0, 0, 0, 0, 0, 0,
  25. 0, 1, 1, 0, 1, 1, 1, 1,
  26. 1, 1, 1, 0, 0, 0, 0, 1,
  27. 0, 0, 0, 0, 0, 0, 0, 0,
  28. 0, 0, 1, 1, 0, 1, 1, 1,
  29. 0, 1, 1, 1, 1, 1, 1, 1,
  30. 1, 1, 1, 1, 1, 1, 1, 1,
  31. 1, 1, 1, 1, 1, 1, 1, 1,
  32. 1, 1, 1, 0, 0, 0, 0, 1,
  33. 1, 0, 0, 0, 0, 0, 0, 0,
  34. 0, 0, 0, 0, 0, 0, 0, 0,
  35. 0, 0, 0, 0, 0, 0, 0, 0,
  36. 0, 0, 0, 0, 0, 0, 0, 0
  37. };
  38. const bool ascii_to_altgr_lut[128] PROGMEM = {
  39. 0, 0, 0, 0, 0, 0, 0, 0,
  40. 0, 0, 0, 0, 0, 0, 0, 0,
  41. 0, 0, 0, 0, 0, 0, 0, 0,
  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. 0, 0, 0, 0, 0, 0, 0, 0,
  47. 1, 0, 0, 0, 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, 1, 1, 1, 0, 0,
  51. 0, 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. };
  56. const uint8_t ascii_to_keycode_lut[128] PROGMEM = {
  57. // NUL SOH STX ETX EOT ENQ ACK BEL
  58. XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX,
  59. // BS TAB LF VT FF CR SO SI
  60. KC_BSPC, KC_TAB, KC_ENT, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX,
  61. // DLE DC1 DC2 DC3 DC4 NAK SYN ETB
  62. XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX,
  63. // CAN EM SUB ESC FS GS RS US
  64. XXXXXXX, XXXXXXX, XXXXXXX, KC_ESC, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX,
  65. // ! " # $ % & '
  66. KC_SPC, DE_1, DE_2, DE_HASH, DE_4, DE_5, DE_6, DE_HASH,
  67. // ( ) * + , - . /
  68. DE_8, DE_9, DE_PLUS, DE_PLUS, DE_COMM, DE_MINS, DE_DOT, DE_7,
  69. // 0 1 2 3 4 5 6 7
  70. DE_0, DE_1, DE_2, DE_3, DE_4, DE_5, DE_6, DE_7,
  71. // 8 9 : ; < = > ?
  72. DE_8, DE_9, DE_DOT, DE_COMM, DE_LESS, DE_0, DE_LESS, DE_SS,
  73. // @ A B C D E F G
  74. DE_Q, DE_A, DE_B, DE_C, DE_D, DE_E, DE_F, DE_G,
  75. // H I J K L M N O
  76. DE_H, DE_I, DE_J, DE_K, DE_L, DE_M, DE_N, DE_O,
  77. // P Q R S T U V W
  78. DE_P, DE_Q, DE_R, DE_S, DE_T, DE_U, DE_V, DE_W,
  79. // X Y Z [ \ ] ^ _
  80. DE_X, DE_Y, DE_Z, DE_8, DE_SS, DE_9, DE_CIRC, DE_MINS,
  81. // ` a b c d e f g
  82. DE_ACUT, 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 { | } ~ DEL
  88. DE_X, DE_Y, DE_Z, DE_7, DE_LESS, DE_0, DE_PLUS, KC_DEL
  89. };