aboutsummaryrefslogtreecommitdiffstats
path: root/tmk_core/common/action_layer.h
Commit message (Collapse)AuthorAgeFilesLines
* format code according to conventions [skip ci]QMK Bot2020-08-291-4/+3
|
* Initialize Layer State on startup (#8318)Drashna Jaelre2020-08-291-2/+4
| | | | | | | | | | | * Initialize Layer State on startup Right now, on startup, the default layer state gets called and set, triggering the callback functions for the default layer state. However, the normal layer state never actually gets initialized. It's set to 0 directly, by default, but the callback functions are never actually called. This creates some inconsistency in the behavior for end users. This adds a simple "clear" that triggers the callback on startup. This should produce more consisten behavior between the two functions and layer masks. * Stupid hack * Fix type casting? * Fix compile issues with magic is disabled
* Optimization for scanning less layers. (#8311)Alex Ong2020-05-111-2/+13
| | | | | * Optimization for scanning less layers. * Rename NUM_LAYERS to MAX_LAYER.
* Strip out features to allow minimum firmware sizes (#8645)Joel Challis2020-04-011-7/+7
|
* Fix LAYER_STATE_8BIT compile issues (#7304)Joel Challis2019-11-081-1/+1
|
* clang-format changesskullY2019-08-301-31/+27
|
* Additional changes for Layer State typedef compatibility (#5906)Drashna Jaelre2019-08-211-1/+4
| | | | | | | | | | | | | | | | * Additional changes for Layer State typedef compatibility * Replace biton32 with get_highest_layer in docs * Change additional layer structure code * Fix uGFX reference issue * Remove dynamic_keymap check * Where did all these extra spaces come from Co-Authored-By: fauxpark <fauxpark@gmail.com>
* Typedef'ed layer_state_t to uint32_t (#3637)Alex Ong2019-05-171-15/+23
| | | | | | | | | | | | | | | | | | | | * 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.
* Change return type of layer_switch_get_layer() to uint8_t (#5011)fauxpark2019-01-311-1/+1
| | | | | | * Change return type of layer_switch_get_layer() to uint8_t * Keep loop index signed so we don't wrap around
* adding Hadron v3 keyboard, QWIIC devices support, haptic feedback support ↵ishtob2018-12-041-3/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (#4462) * add initial support for hadron ver3 * add initial support for hadron ver3 * pull qwiic support for micro_led to be modified for use in hadron's 64x24 ssd1306 oled display * initial work on OLED using qwiic driver * early work to get 128x32 oled working by redefining qwiic micro oled parameters. Currently working, but would affect qwiic's micro oled functionality * moved oled defines to config.h and added ifndef to micro_oled driver * WORKING :D - note, still work in progress to get the start location correct on the 128x32 display. * added equation to automatically calculate display offset based on screen width * adding time-out timer to oled display * changed read lock staus via read_led_state * lock indications fixes * Added scroll lock indication to oled * add support for DRV2605 haptic driver * Improve readabiity of DRV2605 driver. -added typedef for waveform library -added unions for registers * Update keyboards/hadron/ver2/keymaps/default/config.h Co-Authored-By: ishtob <ishtob@gmail.com> * Update keyboards/hadron/ver2/keymaps/default/config.h Co-Authored-By: ishtob <ishtob@gmail.com> * Update keyboards/hadron/ver2/keymaps/default/config.h Co-Authored-By: ishtob <ishtob@gmail.com> * Update keyboards/hadron/ver2/keymaps/default/config.h Co-Authored-By: ishtob <ishtob@gmail.com> * Fixes for PR * PR fixes * fix old persistent layer function to use new set_single_persistent_default_layer * fix issues with changing makefile defines that broken per-key haptic pulse * Comment fixes * Add definable parameter and auto-calibration based on motor choice
* Add user level to default_layer_state_setDrashna Jaelre2018-10-011-0/+2
|
* Make `PREVENT_STUCK_MODIFIERS` the default (#3107)Joe Wasson2018-09-171-1/+1
| | | | | | | | | | * 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.
* make 'layer_state_set' visible to user codeColin T.A. Gray2017-12-151-5/+12
|
* helper to compare current layer_state to user layerColin T.A. Gray2017-12-081-0/+2
| | | | | Performs the same bit comparison that the layer_move functions perform
* adds per-layer rgb color option to ezJack Humbert2017-11-061-0/+2
|
* Fix bug fix attemptPriyadi Iman Nurcahyo2017-02-151-2/+2
|
* Bug fix & added default_layer_state_set_kbPriyadi Iman Nurcahyo2017-02-151-2/+5
|
* Add layer_state_set_kb hookPriyadi Iman Nurcahyo2017-02-151-0/+2
|
* CheckinIBNobody2016-04-141-0/+1
|
* Refactor the source layer cache encodingWojciech Siewierski2016-04-051-0/+8
|
* Cut the memory consumption of PREVENT_STUCK_MODIFIERS in halfWojciech Siewierski2016-03-271-0/+3
|
* Merge commit 'a074364c3731d66b56d988c8a6c960a83ea0e0a1' as 'tmk_core'tmk2015-04-101-0/+77