Make default layer size 16-bit (#15286)
Co-authored-by: James Young <18669334+noroadsleft@users.noreply.github.com>
This commit is contained in:
parent
cfcd647b2e
commit
0da6562c4d
293 changed files with 1249 additions and 1309 deletions
|
@ -89,7 +89,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
|||
|
||||
void matrix_scan_user(void) {
|
||||
uint8_t layer;
|
||||
layer = biton32(layer_state);
|
||||
layer = get_highest_layer(layer_state);
|
||||
|
||||
if (current_layer_global != layer) {
|
||||
current_layer_global = layer;
|
||||
|
@ -132,7 +132,7 @@ void tap_helper(keyrecord_t *record, uint16_t orig_mod, uint16_t macro_mod, uint
|
|||
|
||||
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||
uint8_t layer;
|
||||
layer = biton32(layer_state);
|
||||
layer = get_highest_layer(layer_state);
|
||||
if (layer == PROG2) {
|
||||
if (keycode >= KC_A && keycode <= KC_EXSEL && \
|
||||
!( // do not send LSFT + these keycodes, they are needed for emulating the US layout
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue