Commit Graph

25 Commits (770a4ee7291095aaa6548d3e988633bf2ae6e6c0)

Author SHA1 Message Date
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
6 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 7 years ago
Colin T.A. Gray 3aec9a4354 fixes 'layer_state_cmp' when layer is '1' (aka layer 0, aka layer 1<<0) 7 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
7 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 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
tmk 1a02ebcc61 Merge commit 'a074364c3731d66b56d988c8a6c960a83ea0e0a1' as 'tmk_core' 10 years ago