Kiibohd Controller
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

defaultMap.h 3.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. /* Copyright (C) 2012,2014 by Jacob Alexander
  2. *
  3. * Permission is hereby granted, free of charge, to any person obtaining a copy
  4. * of this software and associated documentation files (the "Software"), to deal
  5. * in the Software without restriction, including without limitation the rights
  6. * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  7. * copies of the Software, and to permit persons to whom the Software is
  8. * furnished to do so, subject to the following conditions:
  9. *
  10. * The above copyright notice and this permission notice shall be included in
  11. * all copies or substantial portions of the Software.
  12. *
  13. * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  14. * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  15. * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  16. * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  17. * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  18. * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
  19. * THE SOFTWARE.
  20. */
  21. #ifndef __KEYMAP_H
  22. #define __KEYMAP_H
  23. // This file contains various key layouts for the SKM 67001 Keyboard from the Olympia Professional ES 105 Typewriter
  24. // ----- Variables -----
  25. // Default 1-indexed key mappings
  26. static uint8_t DefaultMap_Lookup[] = {
  27. 0, // 0x00
  28. KEY_1, // 0x01
  29. KEY_Q, // 0x02
  30. KEY_A, // 0x03
  31. KEY_2, // 0x04
  32. KEY_Z, // 0x05
  33. KEY_W, // 0x06
  34. KEY_S, // 0x07
  35. KEY_3, // 0x08
  36. KEY_X, // 0x09
  37. KEY_E, // 0x0A
  38. KEY_D, // 0x0B
  39. KEY_4, // 0x0C
  40. KEY_C, // 0x0D
  41. KEY_R, // 0x0E
  42. KEY_F, // 0x0F
  43. KEY_5, // 0x10
  44. KEY_V, // 0x11
  45. KEY_T, // 0x12
  46. KEY_G, // 0x13
  47. KEY_6, // 0x14
  48. KEY_B, // 0x15
  49. KEY_Y, // 0x16
  50. KEY_H, // 0x17
  51. KEY_7, // 0x18
  52. KEY_N, // 0x19
  53. KEY_U, // 0x1A
  54. KEY_J, // 0x1B
  55. KEY_8, // 0x1C
  56. KEY_M, // 0x1D
  57. KEY_I, // 0x1E
  58. KEY_K, // 0x1F
  59. KEY_9, // 0x20
  60. KEY_COMMA, // 0x21
  61. KEY_O, // 0x22
  62. KEY_L, // 0x23
  63. KEY_0, // 0x24
  64. KEY_PERIOD, // 0x25
  65. KEY_P, // 0x26
  66. KEY_SEMICOLON, // 0x27
  67. KEY_MINUS, // 0x28
  68. KEY_SLASH, // 0x29
  69. KEY_LEFT_BRACE, // 0x2A (1/4)
  70. KEY_QUOTE, // 0x2B
  71. KEY_EQUAL, // 0x2C
  72. KEY_RIGHT_BRACE, // 0x2D
  73. 0, // 0x2E
  74. 0, // 0x2F
  75. KEY_TILDE, // 0x30
  76. KEY_TAB, // 0x31
  77. 0, // 0x32
  78. 0, // 0x33
  79. KEY_SHIFT, // 0x34
  80. KEY_ENTER, // 0x35
  81. KEY_BACKSPACE, // 0x36
  82. KEY_DELETE, // 0x37
  83. KEY_CTRL, // 0x38 (MAR LEFT)
  84. KEY_SPACE, // 0x39
  85. KEY_ALT, // 0x3A (EXPRESS / MAR RIGHT)
  86. 0, // 0x3B
  87. 0, // 0x3C
  88. KEY_ESC, // 0x3D (MAR REL)
  89. 0, // 0x3E (STORE)
  90. 0, // 0x3F (RECALL)
  91. KEY_GUI, // 0x40 (CODE)
  92. 0, // 0x41
  93. 0, // 0x42
  94. 0, // 0x43
  95. 0, // 0x44
  96. 0, // 0x45
  97. 0, // 0x46
  98. 0, // 0x47
  99. 0, // 0x48 (DEC TAB)
  100. 0, // 0x49 (SET TAB)
  101. 0, // 0x4A (TAB CLEAR)
  102. 0, // 0x4B (INDEX)
  103. 0, // 0x4C (RELOC)
  104. 0, // 0x4D
  105. 0, // 0x4E
  106. 0, // 0x4F
  107. 0, // 0x50 (REV INDEX)
  108. 0, // 0x51
  109. 0, // 0x52
  110. 0, // 0x53
  111. 0, // 0x54
  112. 0, // 0x55
  113. };
  114. #endif