qmk_firmware/tmk_core/common
Drashna Jaelre e6266b19be Initialize Layer State on startup (#8318)
* 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
2020-08-29 14:30:02 -07:00
..
arm_atsam format code according to conventions [skip ci] 2020-01-24 02:15:29 +00:00
avr adds support for the atmega328 (#9043) 2020-06-10 22:23:11 +01:00
chibios Re-fix the STM32 dual-bank bootloader stuff. (#9738) 2020-08-29 14:30:02 -07:00
test Add customisable EEPROM driver selection (#7274) 2020-01-24 12:45:58 +11:00
action.c Add TAP_CODE_DELAY to Mod-Tap (#9422) 2020-07-07 21:47:59 +01:00
action.h Fix compile issues related to NO_ACTION_MACRO/FUNCTION and LTO_ENABLE (#8663) 2020-04-09 00:18:30 +01:00
action_code.h One shot support for swap hands (#8590) 2020-05-14 07:36:55 +10:00
action_layer.c Optimization for scanning less layers. (#8311) 2020-05-11 01:04:38 +01:00
action_layer.h Initialize Layer State on startup (#8318) 2020-08-29 14:30:02 -07:00
action_macro.c clang-format changes 2019-08-30 15:01:52 -07:00
action_macro.h clang-format changes 2019-08-30 15:01:52 -07:00
action_tapping.c 2020 May 30 Breaking Changes Update (#9215) 2020-05-30 13:14:59 -07:00
action_tapping.h 2020 May 30 Breaking Changes Update (#9215) 2020-05-30 13:14:59 -07:00
action_util.c [Bug] Fix Swap Hands bug introduced by OSH (#9968) 2020-08-08 16:41:10 -07:00
action_util.h One shot support for swap hands (#8590) 2020-05-14 07:36:55 +10:00
bootloader.h clang-format changes 2019-08-30 15:01:52 -07:00
bootmagic.c Initialize Layer State on startup (#8318) 2020-08-29 14:30:02 -07:00
bootmagic.h ARM split - Add bootmagic/magic keycodes for setting handedness (#6545) 2019-09-24 15:24:12 +01:00
bootmagic_lite.c format code according to conventions [skip ci] 2020-03-21 23:44:27 +00:00
command.c Remove `DESCRIPTION` (#9732) 2020-07-16 15:49:18 +10:00
command.h clang-format changes 2019-08-30 15:01:52 -07:00
debug.c clang-format changes 2019-08-30 15:01:52 -07:00
debug.h clang-format changes 2019-08-30 15:01:52 -07:00
eeconfig.c Add customisable EEPROM driver selection (#7274) 2020-01-24 12:45:58 +11:00
eeconfig.h VIA Configurator Refactor (#7268) 2020-01-03 12:52:00 -08:00
eeprom.h Add customisable EEPROM driver selection (#7274) 2020-01-24 12:45:58 +11:00
host.c Run clang-format manually to fix recently changed files 2019-11-17 08:25:58 -08:00
host.h New and improved lock LED callbacks (#7215) 2019-11-06 00:42:16 +00:00
host_driver.h clang-format changes 2019-08-30 15:01:52 -07:00
keyboard.c Hid joystick interface (#4226) 2020-08-29 14:30:02 -07:00
keyboard.h clang-format changes 2019-08-30 15:01:52 -07:00
keycode.h Add *OPT aliases for *ALT keycodes and macros (#8714) 2020-04-12 11:37:55 -07:00
led.h Run clang-format manually to fix recently changed files 2019-11-17 08:25:58 -08:00
magic.c Initialize Layer State on startup (#8318) 2020-08-29 14:30:02 -07:00
magic.h
matrix.h Allow 30us matrix delay to be keyboard/user overridable (#8216) 2020-02-21 14:49:33 +11:00
mousekey.c Fix the mousekey scrolling (#9174) 2020-08-29 14:30:02 -07:00
mousekey.h Decouple mouse cursor and mouse wheel in accelerated mode (#6685) 2020-03-13 12:49:44 -04:00
nodebug.h clang-format changes 2019-08-30 15:01:52 -07:00
print.c clang-format changes 2019-08-30 15:01:52 -07:00
print.h 2020 May 30 Breaking Changes Update (#9215) 2020-05-30 13:14:59 -07:00
progmem.h Fix `pgm_read_ptr()` define for ARM (#8658) 2020-04-02 16:52:16 +01:00
raw_hid.h clang-format changes 2019-08-30 15:01:52 -07:00
report.c format code according to conventions [skip ci] 2020-03-13 18:44:56 +00:00
report.h Hid joystick interface (#4226) 2020-08-29 14:30:02 -07:00
sendchar.h clang-format changes 2019-08-30 15:01:52 -07:00
sendchar_null.c Initial vusb console support (#8559) 2020-05-03 01:25:39 +01:00
sendchar_uart.c clang-format changes 2019-08-30 15:01:52 -07:00
sleep_led.h clang-format changes 2019-08-30 15:01:52 -07:00
suspend.h clang-format changes 2019-08-30 15:01:52 -07:00
timer.h format code according to conventions [skip ci] 2020-04-11 00:48:16 +00:00
uart.c adds support for the atmega328 (#9043) 2020-06-10 22:23:11 +01:00
uart.h clang-format changes 2019-08-30 15:01:52 -07:00
util.c Strip out features to allow minimum firmware sizes (#8645) 2020-04-01 21:06:22 +01:00
util.h Wrap util.h functions in `extern "C"` (#6762) 2019-10-04 09:24:47 +10:00
virtser.h
wait.h Remove mbed files (#7605) 2019-12-11 11:36:00 -08:00