-
Notifications
You must be signed in to change notification settings - Fork 271
/
capabilities.kll
60 lines (47 loc) · 2.07 KB
/
capabilities.kll
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# PartialMap
Name = PartialMapCapabilities;
Version = 0.11;
Author = "HaaTa (Jacob Alexander) 2014-2020";
# Modified Date
Date = 2020-01-04;
# Capabilties available to the PartialMap module
layerState => Layer_layerState_capability( layer : 2, state : 1 );
layerLatch => Layer_layerLatch_capability( layer : 2 );
layerLock => Layer_layerLock_capability( layer : 2 );
layerShift => Layer_layerShift_capability( layer : 2 );
# By default, rotate to the next layer
# The current rotating layer is stored separately to the layer stack
# But still sets the layer stack using the layerLock/unlock mechanism
# Argument 0 -> Next, 1 -> Previous
layerRotate => Layer_layerRotate_capability( previous : 1 );
# Clears all layer state
# Not recommended to be called when a layer shift key is being held
clearLayers => Layer_clearLayers_capability();
# Null/None/noop Capability
none => Macro_none_capability();
# Rotation Capability
# Index specifies which rotation memory to use
# Increment specifies how many positions to rotate, use negative for reverse
rotate => Macro_rotate_capability( index : 1, increment : 1 );
# Test Capabilities
testThreadSafe => Macro_testThreadSafe_capability();
testThreadUnsafe => Macro_testThreadUnsafe_capability();
# Defines available to the PartialMap module
stateWordSize => StateWordSize_define;
stateWordSize = 16; # Default for now, increase to 32 for higher limits (8 for less resource usage)
indexWordSize => IndexWordSize_define;
indexWordSize = 16; # Default for now, increase to 32 for higher limits (8 for less resource usage)
# Press/Release Cache
PressReleaseCache => PressReleaseCache_define;
PressReleaseCache = 1;
# Delayed Capabilities Stack Size
DelayedCapabilitiesStackSize => ResultCapabilityStackSize_define;
DelayedCapabilitiesStackSize = 10;
# Simultaneous Result Macro Buffer
# Ring-buffer size for result macro processing
# 1 unit per macro instance output
ResultMacroBufferSize => ResultMacroBufferSize_define;
ResultMacroBufferSize = 50;
# Don't warn about 0 Scancodes defined if set to 1
NoneScanModule => NoneScanModule_define;
NoneScanModule = 0;