Jesse Vincent
ff4722c910
Merge pull request #190 from martinakcsilla/layer-macros
...
Introduce two layer-switch helper functions
7 years ago
Csilla Nagyné Martinák
f05d9c817f
Introduce two layer-switch helper functions
...
This introduces `ToggleLayer(n)` and `MomentaryLayer(n)`, which make it
easier to switch to layers higher than five, and allow one to use enum
values in place of `n`, such as: `ToggleLayer(NUMPAD)`,
`MomentaryLayer(FUNCTION)`.
Signed-off-by: Csilla Nagyné Martinák <csilla@csillger.hu>
7 years ago
Jesse Vincent
a4dfe289b3
Update the example to match the new numlock api
7 years ago
Jesse Vincent
edbe32333e
split out keymap key definitions to their own file
7 years ago
Jesse Vincent
5121412a26
Merge pull request #189 from cdisselkoen/bounds-check
...
Fix out-of-bounds memory accesses resulting from handleKeyswitchEvent()
7 years ago
Craig Disselkoen
44ebeed109
Fix out-of-bounds memory accesses resulting from handleKeyswitchEvent()
7 years ago
Jesse Vincent
5facda8a65
Merge pull request #188 from cdisselkoen/virtual-hardware
...
Support for Kaleidoscope-Hardware-Virtual plugin
7 years ago
Craig Disselkoen
374a3e136c
Support for Kaleidoscope-Hardware-Virtual plugin
7 years ago
Jesse Vincent
8e026fead0
Merge pull request #187 from cdisselkoen/typo-fix
...
Fix typo in keyswitch_state.h comments
7 years ago
Jesse Vincent
e181aa4b58
Merge pull request #186 from cdisselkoen/better-error
...
kaleidoscope-builder: Better error message for sketch-not-found
7 years ago
Craig Disselkoen
9955491971
Fix typo in keyswitch_state.h comments
7 years ago
Craig Disselkoen
b6150cb175
kaleidoscope-builder: Better error message for sketch-not-found
...
Currently, if kaleidoscope-builder fails to find a sketch file, the
resulting error message is very confusing and unhelpful. This commit
makes it more straightforward and helpful.
7 years ago
Jesse Vincent
5015b4e9eb
make doxygen not complain about big tables of macros in the Model 01
...
hardware
7 years ago
Jesse Vincent
0467521354
astyle
7 years ago
Jesse Vincent
4914b24d85
Move key aliases to their own file and add back some aliases depended on
...
by the shortcut + obvious other items
7 years ago
Gergely Nagy
6aefb847cd
Merge pull request #183 from cdisselkoen/for-upstream
...
Improved documentation and clarity for keyswitch states
7 years ago
Craig Disselkoen
1ab2b45c2c
Clearer (and more failsafe) implementation of deprecated methods
7 years ago
Craig Disselkoen
0b3c80b5ee
Improved documentation for keyswitch states
7 years ago
Jesse Vincent
ad15c4798d
Update Makefile with OSX fixes and new paths
7 years ago
Jesse Vincent
c761bf70a9
Update Makefile with OSX fixes and new paths
7 years ago
Jesse Vincent
8c9acb2be5
Update Makefile with OSX fixes and new paths
7 years ago
Jesse Vincent
74b79d60f6
Update Makefile with OSX fixes and new paths
7 years ago
Jesse Vincent
b0701de771
Update Makefile with OSX fixes and new paths
7 years ago
Jesse Vincent
50073dc27b
Update Makefile with OSX fixes and new paths
7 years ago
Jesse Vincent
b9af46b1ef
Update Makefile with OSX fixes and new paths
7 years ago
Jesse Vincent
50c92bddf7
Update Makefile with OSX fixes and new paths
7 years ago
Jesse Vincent
c8c5cc0b02
Update Makefile with OSX fixes and new paths
7 years ago
Jesse Vincent
32a85ec403
Update Makefile with OSX fixes and new paths
7 years ago
Jesse Vincent
4cb2043729
Move Kaleidoscope builder back into Kaleidoscope
7 years ago
Jesse Vincent
c21b88043b
Merge pull request #182 from keyboardio/f/live-composite-keymap-update-on-setup
...
Update the live composite keymap too at setup time
7 years ago
Gergely Nagy
580f945270
Update the live composite keymap too at setup time
...
We want to start with a pre-cached state, so we have both less work to do when
keys are first pressed, and so that plugins that rely on the live composite
state will work reliably too.
Signed-off-by: Gergely Nagy <kaleidoscope@gergo.csillger.hu>
7 years ago
Jesse Vincent
96a8fa6c9e
Merge pull request #181 from keyboardio/f/layer.highest-to-top
...
Rename Layer.highest() to Layer.top()
7 years ago
Gergely Nagy
53a1a2e361
Rename Layer.highest() to Layer.top()
...
For all cases outside of Kaleidoscope itself, we are good with the value of
`highestLayer`, and do not need to re-scan the layer state. For this reason -
upon @obra's suggestion - rename `Layer.highest()` to `Layer.top()`, and the old
`Layer.top()` to `Layer.updateHighestLayer()`, and make the latter private, and
update the `highestLayer` member variable instead of returning the number.
Signed-off-by: Gergely Nagy <kaleidoscope@gergo.csillger.hu>
7 years ago
Jesse Vincent
a54dd140e1
Merge pull request #179 from keyboardio/f/Layer.highest
...
Layer: Add Layer.highest() to access the cached highestLayer
7 years ago
Gergely Nagy
9144701933
layers: Remove an unused & unimplemented function
...
`layer_getKey` was introduced in 6d641e7fc5
, by
mistake, it was never implemented. Remove it now to avoid any possible
confusion.
Signed-off-by: Gergely Nagy <kaleidoscope@gergo.csillger.hu>
7 years ago
Gergely Nagy
acbb9a8e26
examples/AppSwitcher: Use Kaleidoscope.use instead of USE_PLUGINS
...
Signed-off-by: Gergely Nagy <kaleidoscope@gergo.csillger.hu>
7 years ago
Gergely Nagy
a4daa45e49
Use `Kaleidoscope.use` in the README too
...
Signed-off-by: Gergely Nagy <kaleidoscope@gergo.csillger.hu>
7 years ago
Gergely Nagy
1b6dc98703
Use `Kaleidoscope.use` instead of `USE_PLUGINS`
...
The latter is being obsoleted, so use the former, newer API.
Signed-off-by: Gergely Nagy <kaleidoscope@gergo.csillger.hu>
7 years ago
Gergely Nagy
119d021e6a
Layer: Add Layer.highest() to access the cached highestLayer
...
Sometimes we would like to know the highest active layer, which is available in
the `highestLayer` private variable, and via `.top()` too. We do not want to
make `highestLayer` public, because we want to be the only ones changing it. And
while `top()` gets us roughly the same information, it does so at a cost. For a
lot of purposes, the cached `highestLayer` would be perfectly adequate.
The new `Layer.highest()` accessor does just this.
Signed-off-by: Gergely Nagy <kaleidoscope@gergo.csillger.hu>
7 years ago
Gergely Nagy
4dbc5d5707
Update the example to work with the new LEDMode/LEDControl API
...
Signed-off-by: Gergely Nagy <kaleidoscope@gergo.csillger.hu>
7 years ago
Gergely Nagy
dafb257e42
Merge pull request #1 from keyboardio/f/led-api-update
...
Updated to use the new LEDMode/LEDControl API
7 years ago
Gergely Nagy
b40874edfc
Merge pull request #1 from keyboardio/f/led-api-update
...
Updated to use the new LEDMode/LEDControl API
7 years ago
Gergely Nagy
25fcd12402
Merge pull request #1 from keyboardio/f/led-api-update
...
Updated to use the new LEDMode/LEDControl API
7 years ago
Gergely Nagy
a451ed8383
Merge pull request #11 from keyboardio/f/led-api-update
...
Updated to use the new LEDMode/LEDControl API
7 years ago
Gergely Nagy
4781af907b
Merge pull request #7 from keyboardio/f/led-api-update
...
Updated to use the new LEDMode/LEDControl API
7 years ago
Gergely Nagy
8829c32fb7
Merge pull request #11 from keyboardio/f/led-mode/api-redesign
...
Major update of how LED modes work
7 years ago
Gergely Nagy
7f705c43b5
Updated to use the new LEDMode/LEDControl API
...
Signed-off-by: Gergely Nagy <kaleidoscope@gergo.csillger.hu>
7 years ago
Gergely Nagy
de54b5b279
Updated to use the new LEDMode/LEDControl API
...
Signed-off-by: Gergely Nagy <kaleidoscope@gergo.csillger.hu>
7 years ago
Gergely Nagy
a7f9207cec
Updated to use the new LEDMode/LEDControl API
...
Signed-off-by: Gergely Nagy <kaleidoscope@gergo.csillger.hu>
7 years ago
Gergely Nagy
8bb7a5b1e4
Updated to use the new LEDMode/LEDControl API
...
Signed-off-by: Gergely Nagy <kaleidoscope@gergo.csillger.hu>
7 years ago