Stefan Kerkmann
dedc54a328
[Core] guard action related debug messages ( #19348 )
2 years ago
Drashna Jaelre
1caedd10c4
Don't clear keys on layer change unless STRICT_LAYER_RELEASE is enabled ( #18577 )
...
* Don't clear mousekeys unless clearing keys
* Revert "Don't clear mousekeys unless clearing keys"
This reverts commit 29a0c06b547d72b80d416a8b6fab478c77fbd247.
* Just don't clear anything on layer set
* Fix lint
* Enable test?
3 years ago
George Rodrigues
959f4cbb62
docs: some typos ( #18582 )
...
probably hacktoberism
3 years ago
Nick Brassel
edd1f33013
Missed some erroneous prints. ( #16597 )
3 years ago
Nick Brassel
8d5eacb7dd
Add support for encoder mapping. ( #13286 )
3 years ago
QMK Bot
63646e8906
Format code according to conventions ( #16322 )
3 years ago
Joel Challis
b8e913c8db
Migrate platform independent code from tmk_core -> quantum ( #13673 )
...
* Migrate action|keyboard|keycode|eeconfig from tmk_core -> quantum
4 years ago
Drashna Jaelre
8da8aabbe5
Improve layer mask handling ( #13065 )
4 years ago
Alex Ong
361ac2f32a
Optimization for scanning less layers. ( #8311 )
...
* Optimization for scanning less layers.
* Rename NUM_LAYERS to MAX_LAYER.
5 years ago
Drashna Jaelre
668121bbf8
Fix layer debug calls ( #8370 )
5 years ago
Joel Challis
c1970e284d
Fix LAYER_STATE_8BIT compile issues ( #7304 )
6 years ago
skullY
b624f32f94
clang-format changes
6 years ago
Ryan Caltabiano
ba26736d7e
Fix bit count calculation for iterating layers
6 years ago
Alex Ong
00d1d7828c
Typedef'ed layer_state_t to uint32_t ( #3637 )
...
* Typedef'ed layer_state_t to uint32_t.
This enables future work with layer_state_t to uint8_t for optimization purposes.
* Removed accidental xeal60 commit
* Revert to egyptian brackets, added sizeof(layer_state_t) so when layer_state_t is redefined it will automagically work.
* Add additional typedefs
* Add checks for setting layer state
* Update tmk_core/common/action_layer.h
Co-Authored-By: alex-ong <the.onga@gmail.com>
* Revert commit.
6 years ago
fauxpark
d8e9a0f7a3
Change return type of layer_switch_get_layer() to uint8_t ( #5011 )
...
* Change return type of layer_switch_get_layer() to uint8_t
* Keep loop index signed so we don't wrap around
6 years ago
Drashna Jaelre
5fcca9a226
Add documentation and fix formating ( #4860 )
6 years ago
Nikolaus Wittenstein
2fd86f4252
Add some function comments in action_layer.c ( #4858 )
6 years ago
Konstantin Đorđević
93b004c943
Keep pressed keys on layer state change ( fixes #2053 , #2279 ) ( #3905 )
...
* Keep pressed keys on layer state change
* Add doc comment for clear_keyboard_but_mods_and_keys
* Keep pressed keys only if PREVENT_STUCK_MODIFIERS is on
* Check STRICT_LAYER_RELEASE instead of PREVENT_STUCK_MODIFIERS
7 years ago
Drashna Jaelre
4318797d19
Add user level to default_layer_state_set
7 years ago
Joe Wasson
743449472e
Make `PREVENT_STUCK_MODIFIERS` the default ( #3107 )
...
* Remove chording as it is not documented, not used, and needs work.
* Make Leader Key an optional feature.
* Switch from `PREVENT_STUCK_MODIFIERS` to `STRICT_LAYER_RELEASE`
* Remove `#define PREVENT_STUCK_MODIFIERS` from keymaps.
7 years ago
skullydazed
7c9d5ace14
Generate API docs from source code comments ( #2491 )
...
* Generate api docs from source code
* Add a bunch of doxygen comments
* more doxygen comments
* Add the in-progress api docs
* script to generate docs from travis
* Add doc generation to the travis job
* make travis_docs.sh commit the work it does
* make sure the docs script exits cleanly
7 years ago
Colin T.A. Gray
bad839e6ac
make 'layer_state_set' visible to user code
8 years ago
Colin T.A. Gray
3aec9a4354
fixes 'layer_state_cmp' when layer is '1' (aka layer 0, aka layer 1<<0)
8 years ago
Colin T.A. Gray
1620d78e73
helper to compare current layer_state to user layer
...
Performs the same bit comparison that the layer_move
functions perform
8 years ago
Jack Humbert
cf9f6bbd91
adds per-layer rgb color option to ez
8 years ago
Joe Wasson
bae1144a9f
Fix compilation error when NO_ACTION_LAYER is defined.
8 years ago
Priyadi Iman Nurcahyo
d96175937b
Bug fix & added default_layer_state_set_kb
8 years ago
Priyadi Iman Nurcahyo
3c8c3ebe3f
Bug fix & added default_layer_state_set_kb
8 years ago
Priyadi Iman Nurcahyo
d369bfb83a
Add layer_state_set_kb hook
8 years ago
Joe Wasson
f9956c2aac
Fix compiler warning when PREVENT_STUCK_MODIFIERS is enabled.
9 years ago
Jack Humbert
2bbf3d5820
stops forcing debug_action
9 years ago
IBNobody
d5b72e7bde
Fixed many compiler warnings related to print being disabled
9 years ago
Wojciech Siewierski
02a3d77940
Optimize source_layers_cache for the cache memory
...
Swapping the array indices should increase the locality of the memory access.
9 years ago
Wojciech Siewierski
567f256c5d
Refactor the source layer cache encoding
9 years ago
Wojciech Siewierski
b4f442dfea
Cut the memory consumption of PREVENT_STUCK_MODIFIERS in half
9 years ago