sendstring_belgian.h 3.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. /* Copyright 2019 kimat
  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 definitions for the belgian layout */
  17. #ifndef SENDSTRING_BELGIAN
  18. #define SENDSTRING_BELGIAN
  19. #include "keymap_belgian.h"
  20. const bool ascii_to_shift_lut[0x80] 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, 0, 0, 0, 0, 1, 0, 0,
  26. 0, 0, 1, 1, 0, 0, 1, 1,
  27. 1, 1, 1, 1, 1, 1, 1, 1,
  28. 1, 1, 0, 0, 0, 0, 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. 0, 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[0x80] 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, 1, 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, 1, 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. };
  56. // NOTE that you have to send the dead keys twice: tilda, circ
  57. // SEND_STRING(" !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^^``_abcdefghijklmnopqrstuvwxyz{|}~~");
  58. const uint8_t ascii_to_keycode_lut[0x80] PROGMEM = {
  59. 0, 0, 0, 0, 0, 0, 0, 0,
  60. KC_BSPC, KC_TAB, KC_ENT, 0, 0, 0, 0, 0,
  61. 0, 0, 0, 0, 0, 0, 0, 0,
  62. 0, 0, 0, KC_ESC, 0, 0, 0, 0,
  63. /* SPACE ! " # $ % & ' */
  64. KC_SPC, BE_EXLM, BE_QUOT, BE_QUOT, BE_DLR,BE_UGRV,BE_AMP, BE_APOS ,
  65. /* ( ) * + , - . / */
  66. BE_LPRN, BE_RPRN, BE_DLR,BE_EQL, BE_COMM, BE_MINS, BE_SCLN, BE_COLN,
  67. /* 0 1 2 3 4 5 6 7 */
  68. BE_AGRV, BE_AMP, BE_EACU, BE_QUOT, BE_APOS, BE_LPRN, BE_PARA, BE_EGRV,
  69. /* 8 9 : ; < = > ? */
  70. BE_EXLM, BE_CCED, BE_COLN, BE_SCLN, BE_LESS, BE_EQL, BE_LESS, BE_COMM,
  71. /* @ A B C D E F G */
  72. BE_EACU, BE_A, KC_B, KC_C, KC_D, KC_E, KC_F, KC_G,
  73. /* H I J K L M N O */
  74. KC_H, KC_I, KC_J, KC_K, KC_L, BE_M, KC_N, KC_O,
  75. /* P Q R S T U V W */
  76. KC_P, BE_Q, KC_R, KC_S, KC_T, KC_U, KC_V, BE_W,
  77. /* X Y Z [ \ ] ^ _ */
  78. KC_X, KC_Y, BE_Z, BE_CIRC, BE_LESS, BE_DLR, BE_PARA, BE_MINS,
  79. /* ` a b c d e f g */
  80. BE_MU, BE_A, KC_B, KC_C, KC_D, KC_E, KC_F, KC_G,
  81. /* h i j k l m n o */
  82. KC_H, KC_I, KC_J, KC_K, KC_L, BE_M, KC_N, KC_O,
  83. /* p q r s t u v w */
  84. KC_P, BE_Q, KC_R, KC_S, KC_T, KC_U, KC_V, BE_W,
  85. /* x y z { | } ~ DELETE */
  86. KC_X, KC_Y, BE_Z, BE_CCED, BE_AMP, BE_AGRV, BE_EQL, KC_DEL
  87. };
  88. #endif