2015-02-10 04:15:00 +00:00
|
|
|
/* Copyright (C) 2014-2015 by Jacob Alexander
|
2014-09-02 17:03:50 +00:00
|
|
|
*
|
|
|
|
* This file is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation, either version 3 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This file is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this file. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*/
|
|
|
|
|
2014-09-17 00:01:40 +00:00
|
|
|
<|Information|>
|
|
|
|
|
2014-09-02 17:03:50 +00:00
|
|
|
|
2015-07-25 23:11:24 +00:00
|
|
|
#pragma once
|
2014-09-02 17:03:50 +00:00
|
|
|
|
|
|
|
// ----- Includes -----
|
|
|
|
|
|
|
|
// KLL Include
|
|
|
|
#include <kll.h>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// ----- Capabilities -----
|
|
|
|
|
2015-08-18 08:09:52 +00:00
|
|
|
// Capability function declarations
|
|
|
|
<|CapabilitiesFuncDecl|>
|
|
|
|
|
|
|
|
|
2014-09-02 17:03:50 +00:00
|
|
|
// Indexed Capabilities Table
|
|
|
|
<|CapabilitiesList|>
|
|
|
|
|
|
|
|
|
|
|
|
// -- Result Macros
|
|
|
|
|
|
|
|
// Result Macro Guides
|
|
|
|
<|ResultMacros|>
|
|
|
|
|
|
|
|
|
|
|
|
// -- Result Macro List
|
|
|
|
|
|
|
|
// Indexed Table of Result Macros
|
|
|
|
<|ResultMacroList|>
|
|
|
|
|
|
|
|
|
2014-09-17 06:31:11 +00:00
|
|
|
// -- Trigger Macro Record
|
|
|
|
|
|
|
|
// Keeps a record/state of each result macro
|
|
|
|
<|ResultMacroRecord|>
|
|
|
|
|
|
|
|
|
2014-09-02 17:03:50 +00:00
|
|
|
// -- Trigger Macros
|
|
|
|
|
|
|
|
// Trigger Macro Guides
|
|
|
|
<|TriggerMacros|>
|
|
|
|
|
|
|
|
|
|
|
|
// -- Trigger Macro List
|
|
|
|
|
|
|
|
// Indexed Table of Trigger Macros
|
|
|
|
<|TriggerMacroList|>
|
|
|
|
|
|
|
|
|
2014-09-17 06:31:11 +00:00
|
|
|
// -- Trigger Macro Record List
|
|
|
|
|
|
|
|
// Keeps a record/state of each trigger macro
|
|
|
|
<|TriggerMacroRecord|>
|
|
|
|
|
|
|
|
|
2014-09-02 17:03:50 +00:00
|
|
|
|
|
|
|
// ----- Trigger Maps -----
|
|
|
|
|
|
|
|
// MaxScanCode
|
|
|
|
// - This is retrieved from the KLL configuration
|
|
|
|
// - Should be corollated with the max scan code in the scan module
|
|
|
|
// - Maximum value is 0x100 (0x0 to 0xFF)
|
|
|
|
// - Increasing it beyond the keyboard's capabilities is just a waste of ram...
|
2014-09-07 03:56:46 +00:00
|
|
|
#define MaxScanCode <|MaxScanCode|>
|
2014-09-02 17:03:50 +00:00
|
|
|
|
|
|
|
// -- Trigger Lists
|
|
|
|
//
|
|
|
|
// Index 0: # of triggers in list
|
|
|
|
// Index n: pointer to trigger macro - use tm() macro
|
|
|
|
|
|
|
|
// - Default Layer -
|
|
|
|
<|DefaultLayerTriggerList|>
|
|
|
|
|
|
|
|
|
|
|
|
// - Partial Layers -
|
|
|
|
<|PartialLayerTriggerLists|>
|
|
|
|
|
|
|
|
|
2015-08-16 04:29:18 +00:00
|
|
|
// -- ScanCode Offset Map
|
|
|
|
// Maps interconnect ids to scancode offsets
|
|
|
|
//
|
|
|
|
// Only used for keyboards with an interconnect
|
|
|
|
<|ScanCodeInterconnectOffsetList|>
|
|
|
|
|
|
|
|
|
2014-09-02 17:03:50 +00:00
|
|
|
// -- ScanCode Indexed Maps
|
|
|
|
// Maps to a trigger list of macro pointers
|
|
|
|
// _
|
|
|
|
// <scan code> -> |T|
|
|
|
|
// |r| -> <trigger macro pointer 1>
|
|
|
|
// |i|
|
|
|
|
// |g| -> <trigger macro pointer 2>
|
|
|
|
// |g|
|
|
|
|
// |e| -> <trigger macro pointer 3>
|
|
|
|
// |r|
|
|
|
|
// |s| -> <trigger macro pointer n>
|
|
|
|
// -
|
|
|
|
|
|
|
|
// - Default Map for ScanCode Lookup -
|
|
|
|
<|DefaultLayerScanMap|>
|
|
|
|
|
2014-09-07 03:56:46 +00:00
|
|
|
|
2014-09-02 17:03:50 +00:00
|
|
|
// - Partial Layer ScanCode Lookup Maps -
|
|
|
|
<|PartialLayerScanMaps|>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// ----- Layer Index -----
|
|
|
|
|
|
|
|
// -- Layer Index List
|
|
|
|
//
|
|
|
|
// Index 0: Default map
|
|
|
|
// Index n: Additional layers
|
|
|
|
<|LayerIndexList|>
|
|
|
|
|
|
|
|
|
2014-09-17 00:01:40 +00:00
|
|
|
// - Layer State
|
|
|
|
<|LayerState|>
|
|
|
|
|