KLL Compiler
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.

kiibohdKeymap.h 2.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  1. /* Copyright (C) 2014-2015 by Jacob Alexander
  2. *
  3. * This file 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 3 of the License, or
  6. * (at your option) any later version.
  7. *
  8. * This file 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 file. If not, see <http://www.gnu.org/licenses/>.
  15. */
  16. <|Information|>
  17. #pragma once
  18. // ----- Includes -----
  19. // KLL Include
  20. #include <kll.h>
  21. // ----- Capabilities -----
  22. // Indexed Capabilities Table
  23. <|CapabilitiesList|>
  24. // -- Result Macros
  25. // Result Macro Guides
  26. <|ResultMacros|>
  27. // -- Result Macro List
  28. // Indexed Table of Result Macros
  29. <|ResultMacroList|>
  30. // -- Trigger Macro Record
  31. // Keeps a record/state of each result macro
  32. <|ResultMacroRecord|>
  33. // -- Trigger Macros
  34. // Trigger Macro Guides
  35. <|TriggerMacros|>
  36. // -- Trigger Macro List
  37. // Indexed Table of Trigger Macros
  38. <|TriggerMacroList|>
  39. // -- Trigger Macro Record List
  40. // Keeps a record/state of each trigger macro
  41. <|TriggerMacroRecord|>
  42. // ----- Trigger Maps -----
  43. // MaxScanCode
  44. // - This is retrieved from the KLL configuration
  45. // - Should be corollated with the max scan code in the scan module
  46. // - Maximum value is 0x100 (0x0 to 0xFF)
  47. // - Increasing it beyond the keyboard's capabilities is just a waste of ram...
  48. #define MaxScanCode <|MaxScanCode|>
  49. // -- Trigger Lists
  50. //
  51. // Index 0: # of triggers in list
  52. // Index n: pointer to trigger macro - use tm() macro
  53. // - Default Layer -
  54. <|DefaultLayerTriggerList|>
  55. // - Partial Layers -
  56. <|PartialLayerTriggerLists|>
  57. // -- ScanCode Offset Map
  58. // Maps interconnect ids to scancode offsets
  59. //
  60. // Only used for keyboards with an interconnect
  61. <|ScanCodeInterconnectOffsetList|>
  62. // -- ScanCode Indexed Maps
  63. // Maps to a trigger list of macro pointers
  64. // _
  65. // <scan code> -> |T|
  66. // |r| -> <trigger macro pointer 1>
  67. // |i|
  68. // |g| -> <trigger macro pointer 2>
  69. // |g|
  70. // |e| -> <trigger macro pointer 3>
  71. // |r|
  72. // |s| -> <trigger macro pointer n>
  73. // -
  74. // - Default Map for ScanCode Lookup -
  75. <|DefaultLayerScanMap|>
  76. // - Partial Layer ScanCode Lookup Maps -
  77. <|PartialLayerScanMaps|>
  78. // ----- Layer Index -----
  79. // -- Layer Index List
  80. //
  81. // Index 0: Default map
  82. // Index n: Additional layers
  83. <|LayerIndexList|>
  84. // - Layer State
  85. <|LayerState|>