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.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  1. /* Copyright (C) 2014-2016 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. // Capability function declarations
  23. <|CapabilitiesFuncDecl|>
  24. // Indexed Capabilities Table
  25. <|CapabilitiesList|>
  26. // -- Result Macros
  27. // Result Macro Guides
  28. <|ResultMacros|>
  29. // -- Result Macro List
  30. // Indexed Table of Result Macros
  31. <|ResultMacroList|>
  32. // -- Trigger Macro Record
  33. // Keeps a record/state of each result macro
  34. <|ResultMacroRecord|>
  35. // -- Trigger Macros
  36. // Trigger Macro Guides
  37. <|TriggerMacros|>
  38. // -- Trigger Macro List
  39. // Indexed Table of Trigger Macros
  40. <|TriggerMacroList|>
  41. // -- Trigger Macro Record List
  42. // Keeps a record/state of each trigger macro
  43. <|TriggerMacroRecord|>
  44. // ----- Trigger Maps -----
  45. // MaxScanCode
  46. // - This is retrieved from the KLL configuration
  47. // - Should be corollated with the max scan code in the scan module
  48. // - Maximum value is 0x100 (0x0 to 0xFF)
  49. // - Increasing it beyond the keyboard's capabilities is just a waste of ram...
  50. #define MaxScanCode <|MaxScanCode|>
  51. // -- Trigger Lists
  52. //
  53. // Index 0: # of triggers in list
  54. // Index n: pointer to trigger macro - use tm() macro
  55. // - Default Layer -
  56. <|DefaultLayerTriggerList|>
  57. // - Partial Layers -
  58. <|PartialLayerTriggerLists|>
  59. // -- ScanCode Offset Map
  60. // Maps interconnect ids to scancode offsets
  61. //
  62. // Only used for keyboards with an interconnect
  63. <|ScanCodeInterconnectOffsetList|>
  64. // -- ScanCode Indexed Maps
  65. // Maps to a trigger list of macro pointers
  66. // _
  67. // <scan code> -> |T|
  68. // |r| -> <trigger macro pointer 1>
  69. // |i|
  70. // |g| -> <trigger macro pointer 2>
  71. // |g|
  72. // |e| -> <trigger macro pointer 3>
  73. // |r|
  74. // |s| -> <trigger macro pointer n>
  75. // -
  76. // - Default Map for ScanCode Lookup -
  77. <|DefaultLayerScanMap|>
  78. // - Partial Layer ScanCode Lookup Maps -
  79. <|PartialLayerScanMaps|>
  80. // ----- Layer Index -----
  81. // -- Layer Index List
  82. //
  83. // Index 0: Default map
  84. // Index n: Additional layers
  85. <|LayerIndexList|>
  86. // - Layer State
  87. <|LayerState|>