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.

customSKM.h 2.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. /* Copyright (C) 2012,2014-2015 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. #pragma once
  22. // ----- Variables -----
  23. // Default 1-indexed key mappings
  24. static uint8_t DefaultMap_Lookup[] = {
  25. 0, // 0x00
  26. KEY_1, // 0x01
  27. KEY_Q, // 0x02
  28. KEY_A, // 0x03
  29. KEY_2, // 0x04
  30. KEY_Z, // 0x05
  31. KEY_W, // 0x06
  32. KEY_S, // 0x07
  33. KEY_3, // 0x08
  34. KEY_X, // 0x09
  35. KEY_E, // 0x0A
  36. KEY_D, // 0x0B
  37. KEY_4, // 0x0C
  38. KEY_C, // 0x0D
  39. KEY_R, // 0x0E
  40. KEY_F, // 0x0F
  41. KEY_5, // 0x10
  42. KEY_V, // 0x11
  43. KEY_T, // 0x12
  44. KEY_G, // 0x13
  45. KEY_6, // 0x14
  46. KEY_B, // 0x15
  47. KEY_Y, // 0x16
  48. KEY_H, // 0x17
  49. KEY_7, // 0x18
  50. KEY_N, // 0x19
  51. KEY_U, // 0x1A
  52. KEY_J, // 0x1B
  53. KEY_8, // 0x1C
  54. KEY_M, // 0x1D
  55. KEY_I, // 0x1E
  56. KEY_K, // 0x1F
  57. KEY_9, // 0x20
  58. KEY_COMMA, // 0x21
  59. KEY_O, // 0x22
  60. KEY_L, // 0x23
  61. KEY_0, // 0x24
  62. KEY_PERIOD, // 0x25
  63. KEY_P, // 0x26
  64. KEY_SEMICOLON, // 0x27
  65. KEY_MINUS, // 0x28
  66. KEY_SLASH, // 0x29
  67. KEY_LEFT_BRACE, // 0x2A (1/4)
  68. KEY_QUOTE, // 0x2B
  69. KEY_EQUAL, // 0x2C
  70. KEY_RIGHT_BRACE, // 0x2D
  71. 0, // 0x2E
  72. 0, // 0x2F
  73. KEY_TILDE, // 0x30
  74. KEY_TAB, // 0x31
  75. 0, // 0x32
  76. 0, // 0x33
  77. KEY_SHIFT, // 0x34
  78. KEY_ENTER, // 0x35
  79. KEY_BACKSPACE, // 0x36
  80. KEY_DELETE, // 0x37
  81. KEY_CTRL, // 0x38 (MAR LEFT)
  82. KEY_SPACE, // 0x39
  83. KEY_ALT, // 0x3A (EXPRESS / MAR RIGHT)
  84. 0, // 0x3B
  85. 0, // 0x3C
  86. KEY_ESC, // 0x3D (MAR REL)
  87. 0, // 0x3E (STORE)
  88. 0, // 0x3F (RECALL)
  89. KEY_GUI, // 0x40 (CODE)
  90. 0, // 0x41
  91. 0, // 0x42
  92. 0, // 0x43
  93. 0, // 0x44
  94. 0, // 0x45
  95. 0, // 0x46
  96. 0, // 0x47
  97. 0, // 0x48 (DEC TAB)
  98. 0, // 0x49 (SET TAB)
  99. 0, // 0x4A (TAB CLEAR)
  100. 0, // 0x4B (INDEX)
  101. 0, // 0x4C (RELOC)
  102. 0, // 0x4D
  103. 0, // 0x4E
  104. 0, // 0x4F
  105. 0, // 0x50 (REV INDEX)
  106. 0, // 0x51
  107. 0, // 0x52
  108. 0, // 0x53
  109. 0, // 0x54
  110. 0, // 0x55
  111. };